1
2
3
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
16
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 }