Package org.kohsuke.github
Class RequesterRetryTest
java.lang.Object
org.kohsuke.github.AbstractGitHubWireMockTest
org.kohsuke.github.RequesterRetryTest
The Class RequesterRetryTest.
- Author:
- Victor Martinez
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
RequesterRetryTest.Thrower<E extends Throwable>
The Interface Thrower.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 TypeMethodDescriptionvoid
Attach log capturer.protected GHRepository
Gets the repository.Gets the test captured log.void
Reset test captured log.void
Test git hub is api url valid.void
Test input stream connection exceptions.void
Test input stream failure exceptions.void
Test response code connection exceptions.void
Test response code failure exceptions.void
Test socket connection and retry.void
Test socket connection and retry status code.void
Test socket connection and retry success.Methods inherited from class org.kohsuke.github.AbstractGitHubWireMockTest
assertThat, assertThat, assertThat, cleanupRepository, cleanupTempRepositories, fail, fail, getGitHubBuilder, getNonRecordingGitHub, getTempRepository, getTempRepository, getUser, getUser, getWireMockOptions, kohsuke, requireProxy, snapshotNotAllowed, verifyAuthenticated, wireMockSetup
-
Constructor Details
-
RequesterRetryTest
public RequesterRetryTest()Instantiates a new requester retry test.
-
-
Method Details
-
getRepository
Gets the repository.- Returns:
- the repository
- Throws:
IOException
- Signals that an I/O exception has occurred.
-
attachLogCapturer
public void attachLogCapturer()Attach log capturer. -
getTestCapturedLog
Gets the test captured log.- Returns:
- the test captured log
- Throws:
IOException
- Signals that an I/O exception has occurred.
-
resetTestCapturedLog
Reset test captured log.- Throws:
IOException
- Signals that an I/O exception has occurred.
-
testGitHubIsApiUrlValid
Test git hub is api url valid.- Throws:
Exception
- the exception
-
testSocketConnectionAndRetry
Test socket connection and retry.- Throws:
Exception
- the exception
-
testSocketConnectionAndRetry_StatusCode
Test socket connection and retry status code.- Throws:
Exception
- the exception
-
testSocketConnectionAndRetry_Success
Test socket connection and retry success.- Throws:
Exception
- the exception
-
testResponseCodeFailureExceptions
Test response code failure exceptions.- Throws:
Exception
- the exception
-
testInputStreamFailureExceptions
Test input stream failure exceptions.- Throws:
Exception
- the exception
-
testResponseCodeConnectionExceptions
Test response code connection exceptions.- Throws:
Exception
- the exception
-
testInputStreamConnectionExceptions
Test input stream connection exceptions.- Throws:
Exception
- the exception
-