Class RequesterRetryTest


public class RequesterRetryTest extends AbstractGitHubWireMockTest
The Class RequesterRetryTest.
Author:
Victor Martinez
  • Constructor Details

    • RequesterRetryTest

      public RequesterRetryTest()
      Instantiates a new requester retry test.
  • Method Details

    • getRepository

      protected GHRepository getRepository() throws IOException
      Gets the repository.
      Returns:
      the repository
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • attachLogCapturer

      public void attachLogCapturer()
      Attach log capturer.
    • getTestCapturedLog

      public String getTestCapturedLog() throws IOException
      Gets the test captured log.
      Returns:
      the test captured log
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • resetTestCapturedLog

      public void resetTestCapturedLog() throws IOException
      Reset test captured log.
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • testGitHubIsApiUrlValid

      public void testGitHubIsApiUrlValid() throws Exception
      Test git hub is api url valid.
      Throws:
      Exception - the exception
    • testSocketConnectionAndRetry

      public void testSocketConnectionAndRetry() throws Exception
      Test socket connection and retry.
      Throws:
      Exception - the exception
    • testSocketConnectionAndRetry_StatusCode

      public void testSocketConnectionAndRetry_StatusCode() throws Exception
      Test socket connection and retry status code.
      Throws:
      Exception - the exception
    • testSocketConnectionAndRetry_Success

      public void testSocketConnectionAndRetry_Success() throws Exception
      Test socket connection and retry success.
      Throws:
      Exception - the exception
    • testResponseCodeFailureExceptions

      public void testResponseCodeFailureExceptions() throws Exception
      Test response code failure exceptions.
      Throws:
      Exception - the exception
    • testInputStreamFailureExceptions

      public void testInputStreamFailureExceptions() throws Exception
      Test input stream failure exceptions.
      Throws:
      Exception - the exception
    • testResponseCodeConnectionExceptions

      public void testResponseCodeConnectionExceptions() throws Exception
      Test response code connection exceptions.
      Throws:
      Exception - the exception
    • testInputStreamConnectionExceptions

      public void testInputStreamConnectionExceptions() throws Exception
      Test input stream connection exceptions.
      Throws:
      Exception - the exception