1
2
3
4
5 package com.jcabi.github;
6
7 import java.io.IOException;
8 import org.hamcrest.MatcherAssert;
9 import org.hamcrest.Matchers;
10 import org.junit.jupiter.api.Test;
11
12
13
14
15
16
17 @OAuthScope(OAuthScope.Scope.REPO)
18 final class RtLimitsITCase {
19
20 @Test
21 void checksRemainingRequests() throws IOException {
22 final GitHub github = GitHubIT.connect();
23 MatcherAssert.assertThat(
24 "Value is null",
25 new Limit.Smart(github.limits().get("core")).remaining(),
26 Matchers.notNullValue()
27 );
28 }
29
30 }