1
2
3
4
5 package com.jcabi.github.mock;
6
7 import com.jcabi.github.Repo;
8 import java.io.IOException;
9 import org.hamcrest.MatcherAssert;
10 import org.hamcrest.Matchers;
11 import org.junit.jupiter.api.Test;
12
13
14
15
16
17 final class MkGitTest {
18
19 @Test
20 void canFetchOwnRepo() throws IOException {
21 final Repo repo = new MkGitHub().randomRepo();
22 MatcherAssert.assertThat(
23 "Values are not equal",
24 repo.git().repo(),
25 Matchers.equalTo(repo)
26 );
27 }
28
29 @Test
30 void givesReferences() throws IOException {
31 MatcherAssert.assertThat(
32 "Value is null",
33 new MkGitHub().randomRepo().git().references(),
34 Matchers.notNullValue()
35 );
36 }
37 }