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.Limit;
8   import com.jcabi.github.Limits;
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   * Test case for {@link MkLimits}.
16   * @since 0.1
17   */
18  final class MkLimitsTest {
19  
20      @Test
21      void worksWithMockedData() throws IOException {
22          final Limits limits = new MkGitHub().limits();
23          MatcherAssert.assertThat(
24              "Value is not greater than expected",
25              new Limit.Smart(limits.get(Limits.CORE)).limit(),
26              Matchers.greaterThan(0)
27          );
28      }
29  
30  }