Package org.kohsuke.github
Class RateLimitCheckerTest
- java.lang.Object
-
- org.kohsuke.github.AbstractGitHubWireMockTest
-
- org.kohsuke.github.RateLimitCheckerTest
-
public class RateLimitCheckerTest extends AbstractGitHubWireMockTest
Test showing the behavior of theGitHubRateLimitCheckerandRateLimitChecker.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 Constructor Description RateLimitCheckerTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.github.tomakehurst.wiremock.core.WireMockConfigurationgetWireMockOptions()voidtestGitHubRateLimit()protected voidupdateTestRateLimit()-
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
-
-
-
-
Method Detail
-
getWireMockOptions
protected com.github.tomakehurst.wiremock.core.WireMockConfiguration getWireMockOptions()
- Overrides:
getWireMockOptionsin classAbstractGitHubWireMockTest
-
updateTestRateLimit
protected void updateTestRateLimit()
-
-