java.lang.Object
org.kohsuke.github.AbstractGitHubWireMockTest
org.kohsuke.github.RateLimitCheckerTest
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.-
Nested Class Summary
Nested classes/interfaces inherited from class org.kohsuke.github.AbstractGitHubWireMockTest
AbstractGitHubWireMockTest.TemplatingHelper
-
Field Summary
Fields inherited from class org.kohsuke.github.AbstractGitHubWireMockTest
baseFilesClassPath, baseRecordPath, gitHub, mockGitHub, tempGitHubRepositories, templating, useDefaultGitHub
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected com.github.tomakehurst.wiremock.core.WireMockConfiguration
Gets the wire mock options.void
Test git hub rate limit.protected void
Update test rate limit.Methods inherited from class org.kohsuke.github.AbstractGitHubWireMockTest
assertThat, assertThat, assertThat, cleanupRepository, cleanupTempRepositories, fail, fail, getGitHubBuilder, getNonRecordingGitHub, getTempRepository, getTempRepository, getUser, getUser, kohsuke, requireProxy, snapshotNotAllowed, verifyAuthenticated, wireMockSetup
-
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 classAbstractGitHubWireMockTest
- Returns:
- the wire mock options
-
testGitHubRateLimit
Test git hub rate limit.- Throws:
Exception
- the exception
-
updateTestRateLimit
protected void updateTestRateLimit()Update test rate limit.
-