Class EnterpriseManagedSupportTest

java.lang.Object
org.kohsuke.github.AbstractGitHubWireMockTest
org.kohsuke.github.EnterpriseManagedSupportTest

public class EnterpriseManagedSupportTest extends AbstractGitHubWireMockTest
The Class EnterpriseManagedSupportTest.
  • Constructor Details

    • EnterpriseManagedSupportTest

      public EnterpriseManagedSupportTest()
      Create default EnterpriseManagedSupportTest instance
  • Method Details

    • testIgnoreNonHttpException

      public void testIgnoreNonHttpException() throws IOException
      Test to ensure that only HttpExceptions are handled
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • testIgnoreNonBadRequestExceptions

      public void testIgnoreNonBadRequestExceptions() throws IOException
      Test to ensure that only BadRequests HttpExceptions are handled
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • testIgnoreBadRequestsWithUnparseableJson

      public void testIgnoreBadRequestsWithUnparseableJson() throws IOException
      Test to ensure that only BadRequests HttpExceptions with parseable JSON payload are handled
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • testIgnoreBadRequestsWithUnknownErrorMessage

      public void testIgnoreBadRequestsWithUnknownErrorMessage() throws IOException
      Test to ensure that only BadRequests HttpExceptions with known error message are handled
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • testHandleEmbeddedNotPartOfExternallyManagedEnterpriseHttpException

      public void testHandleEmbeddedNotPartOfExternallyManagedEnterpriseHttpException() throws IOException
      Test to validate compliant use case.
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • testHandleTeamCannotBeExternallyManagedHttpException

      public void testHandleTeamCannotBeExternallyManagedHttpException() throws IOException
      Test to validate another compliant use case.
      Throws:
      IOException - Signals that an I/O exception has occurred.