java.lang.Object
org.kohsuke.github.AbstractGitHubWireMockTest
org.kohsuke.github.extras.okhttp3.GitHubCachingTest
Test showing the behavior of OkHttpGitHubConnector cache with GitHub 404 responses.
- Author:
- Liam Newman
-
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.voidSetup repo.voidTest cached 404.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
-
GitHubCachingTest
public GitHubCachingTest()Instantiates a new git hub caching test.
-
-
Method Details
-
setupRepo
Setup repo.- Throws:
Exception- the exception
-
testCached404
Test cached 404.- 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
-