Package org.kohsuke.github
Class RequesterRetryTest
- java.lang.Object
-
- org.kohsuke.github.AbstractGitHubWireMockTest
-
- org.kohsuke.github.RequesterRetryTest
-
public class RequesterRetryTest extends AbstractGitHubWireMockTest
- Author:
- Victor Martinez
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceRequesterRetryTest.Thrower<E extends Throwable>-
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 RequesterRetryTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidattachLogCapturer()protected GHRepositorygetRepository()StringgetTestCapturedLog()voidresetTestCapturedLog()voidtestGitHubIsApiUrlValid()voidtestInputStreamConnectionExceptions()voidtestInputStreamFailureExceptions()voidtestResponseCodeConnectionExceptions()voidtestResponseCodeFailureExceptions()voidtestSocketConnectionAndRetry()voidtestSocketConnectionAndRetry_StatusCode()voidtestSocketConnectionAndRetry_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
-
-
-
-
Method Detail
-
getRepository
protected GHRepository getRepository() throws IOException
- Throws:
IOException
-
attachLogCapturer
public void attachLogCapturer()
-
getTestCapturedLog
public String getTestCapturedLog() throws IOException
- Throws:
IOException
-
resetTestCapturedLog
public void resetTestCapturedLog() throws IOException- Throws:
IOException
-
testSocketConnectionAndRetry
public void testSocketConnectionAndRetry() throws Exception- Throws:
Exception
-
testSocketConnectionAndRetry_StatusCode
public void testSocketConnectionAndRetry_StatusCode() throws Exception- Throws:
Exception
-
testSocketConnectionAndRetry_Success
public void testSocketConnectionAndRetry_Success() throws Exception- Throws:
Exception
-
testResponseCodeFailureExceptions
public void testResponseCodeFailureExceptions() throws Exception- Throws:
Exception
-
testInputStreamFailureExceptions
public void testInputStreamFailureExceptions() throws Exception- Throws:
Exception
-
testResponseCodeConnectionExceptions
public void testResponseCodeConnectionExceptions() throws Exception- Throws:
Exception
-
-