View Javadoc
1   /*
2    * SPDX-FileCopyrightText: Copyright (c) 2013-2025 Yegor Bugayenko
3    * SPDX-License-Identifier: MIT
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   * Integration case for {@link RtLimits}.
14   * @since 0.1
15   * @checkstyle ClassDataAbstractionCoupling (500 lines)
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  }