1
2
3
4
5 package com.jcabi.github.mock;
6
7 import com.jcabi.github.Fork;
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 MkForkTest {
18 @Test
19 void fetchAsJson() throws IOException {
20 final Fork fork = new MkGitHub().randomRepo().forks().create("fork");
21 MatcherAssert.assertThat(
22 "String does not contain expected value",
23 fork.json().toString(),
24 Matchers.containsString("{")
25 );
26 }
27 }