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.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   * Test case for {@link MkFork}.
15   * @since 0.8
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  }