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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected com.github.tomakehurst.wiremock.core.WireMockConfigurationGets the wire mock options.voidTest git hub rate limit.protected voidUpdate 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
-
testGitHubRateLimit
Test git hub rate limit.- Throws:
Exception- the exception
-
getWireMockOptions
protected com.github.tomakehurst.wiremock.core.WireMockConfiguration getWireMockOptions()Gets the wire mock options.- Overrides:
getWireMockOptionsin classAbstractGitHubWireMockTest- Returns:
- the wire mock options
-
updateTestRateLimit
protected void updateTestRateLimit()Update test rate limit.
-