Class RateLimitCheckerTest

java.lang.Object
org.kohsuke.github.AbstractGitHubWireMockTest
org.kohsuke.github.RateLimitCheckerTest

public class RateLimitCheckerTest extends AbstractGitHubWireMockTest
Test showing the behavior of the GitHubRateLimitChecker and RateLimitChecker.LiteralValue. This is a very simple test but covers the key features: Checks occur automatically and are retried until they indicate it is safe to proceed.
  • Constructor Details

    • RateLimitCheckerTest

      public RateLimitCheckerTest()
      Instantiates a new rate limit checker test.
  • Method Details

    • getWireMockOptions

      protected com.github.tomakehurst.wiremock.core.WireMockConfiguration getWireMockOptions()
      Gets the wire mock options.
      Overrides:
      getWireMockOptions in class AbstractGitHubWireMockTest
      Returns:
      the wire mock options
    • testGitHubRateLimit

      public void testGitHubRateLimit() throws Exception
      Test git hub rate limit.
      Throws:
      Exception - the exception
    • updateTestRateLimit

      protected void updateTestRateLimit()
      Update test rate limit.