java.lang.Object
org.kohsuke.github.AbstractGitHubWireMockTest
org.kohsuke.github.EnterpriseManagedSupportTest
The Class EnterpriseManagedSupportTest.
-
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
ConstructorDescriptionCreate default EnterpriseManagedSupportTest instance -
Method Summary
Modifier and TypeMethodDescriptionvoid
Test to validate compliant use case.void
Test to validate another compliant use case.void
Test to ensure that only BadRequests HttpExceptions with known error message are handledvoid
Test to ensure that only BadRequests HttpExceptions with parseable JSON payload are handledvoid
Test to ensure that only BadRequests HttpExceptions are handledvoid
Test to ensure that only HttpExceptions are handledMethods 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
-
EnterpriseManagedSupportTest
public EnterpriseManagedSupportTest()Create default EnterpriseManagedSupportTest instance
-
-
Method Details
-
testIgnoreNonHttpException
Test to ensure that only HttpExceptions are handled- Throws:
IOException
- Signals that an I/O exception has occurred.
-
testIgnoreNonBadRequestExceptions
Test to ensure that only BadRequests HttpExceptions are handled- Throws:
IOException
- Signals that an I/O exception has occurred.
-
testIgnoreBadRequestsWithUnparseableJson
Test to ensure that only BadRequests HttpExceptions with parseable JSON payload are handled- Throws:
IOException
- Signals that an I/O exception has occurred.
-
testIgnoreBadRequestsWithUnknownErrorMessage
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 IOExceptionTest to validate compliant use case.- Throws:
IOException
- Signals that an I/O exception has occurred.
-
testHandleTeamCannotBeExternallyManagedHttpException
Test to validate another compliant use case.- Throws:
IOException
- Signals that an I/O exception has occurred.
-