View Javadoc
1   /*
2    * SPDX-FileCopyrightText: Copyright (c) 2013-2025 Yegor Bugayenko
3    * SPDX-License-Identifier: MIT
4    */
5   package com.jcabi.github.mock;
6   
7   import com.jcabi.github.Coordinates;
8   import com.jcabi.github.Repo;
9   import java.io.IOException;
10  import org.hamcrest.MatcherAssert;
11  import org.hamcrest.Matchers;
12  import org.junit.jupiter.api.Test;
13  
14  /**
15   * Unit tests for the MkUser class.
16   * @since 0.7
17   */
18  final class MkMilestoneTest {
19  
20      @Test
21      void returnsSameCoordinatesRepo() throws IOException {
22          final Coordinates coordinates = new Coordinates.Simple(
23              "user",
24              "repo"
25          );
26          final MkMilestone milestone = new MkMilestone(
27              new MkStorage.InFile(),
28              "login",
29              coordinates,
30              1
31          );
32          final Repo repo = milestone.repo();
33          MatcherAssert.assertThat(
34              "Values are not equal",
35              repo.coordinates(),
36              Matchers.equalTo(coordinates)
37          );
38      }
39  
40  }