Class AbstractExtendedMockingIntegrationTest
- java.lang.Object
-
- org.mockserver.testing.integration.mock.AbstractMockingIntegrationTestBase
-
- org.mockserver.testing.integration.mock.AbstractBasicMockingIntegrationTest
-
- org.mockserver.testing.integration.mock.AbstractBasicMockingSameJVMIntegrationTest
-
- org.mockserver.testing.integration.mock.AbstractExtendedMockingIntegrationTest
-
- Direct Known Subclasses:
AbstractExtendedSameJVMMockingIntegrationTest
public abstract class AbstractExtendedMockingIntegrationTest extends AbstractBasicMockingSameJVMIntegrationTest
- Author:
- jamesdbloom
-
-
Field Summary
-
Fields inherited from class org.mockserver.testing.integration.mock.AbstractMockingIntegrationTestBase
clientEventLoopGroup, defaultTimeout, HEADERS_TO_IGNORE, httpClient, insecureEchoServer, MOCK_SERVER_LOGGER, mockServerClient, secureEchoServer, servletContext
-
-
Constructor Summary
Constructors Constructor Description AbstractExtendedMockingIntegrationTest()
-
Method Summary
-
Methods inherited from class org.mockserver.testing.integration.mock.AbstractBasicMockingSameJVMIntegrationTest
shouldAllowSimultaneousForwardAndResponseExpectations, shouldClearExpectationsAndLogsByOpenAPIUrl, shouldForwardCallbackClassToOverrideRequestAndResponseInTestClasspath, shouldForwardCallbackClassToOverrideRequestInTestClasspathAsClass, shouldForwardCallbackClassToOverrideRequestInTestClasspathAsString, shouldForwardCallbackClassWithDelay, shouldNotReturnResponseForNonMatchingOpenAPIUrl, shouldRetrieveRecordedRequestsByOpenAPIUrl, shouldReturnResponseByMatchingOpenAPIExpectationWithUrl, shouldReturnResponseByMatchingOpenAPIUrlWithOperationId, shouldReturnResponseByMatchingOpenAPIUrlWithoutOperationId, shouldReturnResponseForCallbackClassForSpecifiedClassWithPrecannedResponse, shouldReturnResponseForCallbackClassWithDelay, shouldVerifyNotEnoughRequestsReceivedWithOpenAPIUrl, shouldVerifySequenceOfRequestsReceivedByOpenAPIUrl, supportsHTTP2
-
Methods inherited from class org.mockserver.testing.integration.mock.AbstractBasicMockingIntegrationTest
localNotFoundResponse, shouldClearExpectationsAndLogs, shouldClearExpectationsAndLogsByOpenAPI, shouldErrorForInvalidExpectation, shouldErrorForInvalidRequest, shouldForwardOverriddenRequest, shouldForwardOverriddenRequestWithDelay, shouldForwardOverriddenRequestWithEmptyRequestAndResponseModifiers, shouldForwardOverriddenRequestWithOverriddenResponse, shouldForwardOverriddenRequestWithRequestAndResponseModifiers, shouldForwardOverriddenRequestWithRequestModifier, shouldForwardOverriddenRequestWithSocketAddress, shouldForwardRequestInHTTP, shouldForwardRequestInHTTPS, shouldForwardRequestInHTTPWithDelay, shouldForwardTemplateInMustache, shouldForwardTemplateInVelocity, shouldNotReturnResponseForNonMatchingBody, shouldNotReturnResponseForNonMatchingOpenAPI, shouldNotReturnResponseForNonMatchingPath, shouldNotReturnResponseForNottedHeader, shouldReset, shouldRetrieveActiveExpectations, shouldRetrieveRecordedExpectations, shouldRetrieveRecordedLogMessages, shouldRetrieveRecordedRequests, shouldRetrieveRecordedRequestsAndResponse, shouldRetrieveRecordedRequestsByOpenAPI, shouldReturnResponseByMatchingNotBody, shouldReturnResponseByMatchingOpenAPIExpectationWithArrayParametersWithSpecAndResponse, shouldReturnResponseByMatchingOpenAPIExpectationWithContentTypeWithSpecialCharacters, shouldReturnResponseByMatchingOpenAPIExpectationWithSpecAndResponse, shouldReturnResponseByMatchingOpenAPISpecWithOperationId, shouldReturnResponseByMatchingPathAndMethod, shouldReturnResponseByMatchingSchemaHeaderCookieAndParameter, shouldReturnResponseByMatchingSchemaPathAndSchemaMethod, shouldReturnResponseByMatchingSchemaPathVariable, shouldReturnResponseByMatchingStringBody, shouldReturnResponseForExpectationWithDelay, shouldReturnResponseFromMustacheTemplate, shouldReturnResponseFromVelocityTemplate, shouldReturnResponseInHTTP, shouldReturnResponseInHTTP_1_1ByDefault, shouldReturnResponseInHTTP2UsingALPN, shouldReturnResponseInHTTPS, shouldReturnResponseWithOnlyBody, shouldReturnResponseWithOnlyStatusCode, shouldSupportBatchedExpectations, shouldVerifyNoRequestsReceived, shouldVerifyNotEnoughRequestsReceived, shouldVerifyNotEnoughRequestsReceivedWithMaximumNumberOfRequestToReturnInFailure, shouldVerifyNotEnoughRequestsReceivedWithOpenAPI, shouldVerifyNotReceivedRequestWithEmptyBody, shouldVerifyReceivedRequestsByExpectationId, shouldVerifyReceivedRequestsByExpectationIdWithIdenticalRequestMatchers, shouldVerifyReceivedRequestsSpecificTimesInHttpAndHttps, shouldVerifySequenceNotFoundWithMaximumNumberOfRequestToReturnInFailure, shouldVerifySequenceOfRequestsReceived, shouldVerifySequenceOfRequestsReceivedByExceptionId, shouldVerifySequenceOfRequestsReceivedByExceptionIdWithIdenticalRequestMatchers, shouldVerifySequenceOfRequestsReceivedByOpenAPI
-
Methods inherited from class org.mockserver.testing.integration.mock.AbstractMockingIntegrationTestBase
addContextToPath, authorisationHeader, calculatePath, createClientAndEventLoopGroup, filterHeaders, getHeadersToRemove, getRequestModifier, getServerPort, getServerSecurePort, isSecureControlPlane, makeRequest, resetServer, resetServletContext, startEchoServer, stopEventLoopGroup, verifyRequestsMatches, verifyRequestsMatches
-
-
-
-
Method Detail
-
fixTime
public static void fixTime()
-
shouldReturnResponseForRequestInSsl
public void shouldReturnResponseForRequestInSsl()
-
shouldReturnResponseForRequestNotInSsl
public void shouldReturnResponseForRequestNotInSsl()
-
shouldReturnResponseByMatchingPath
public void shouldReturnResponseByMatchingPath()
-
shouldReturnResponseByMatchingPathExactTimes
public void shouldReturnResponseByMatchingPathExactTimes()
-
shouldReturnResponseByMatchingOptionalSchemaQueryStringParameter
public void shouldReturnResponseByMatchingOptionalSchemaQueryStringParameter()
-
shouldReturnResponseByMatchingOptionalHeaderWithEitherOr
public void shouldReturnResponseByMatchingOptionalHeaderWithEitherOr()
-
shouldReturnResponseByMatchingHeaderNotPresent
public void shouldReturnResponseByMatchingHeaderNotPresent()
-
shouldReturnResponseByMatchingOptionalBody
public void shouldReturnResponseByMatchingOptionalBody()
-
shouldReturnResponseByMatchingBodyWithSpaceDelimitedParameters
public void shouldReturnResponseByMatchingBodyWithSpaceDelimitedParameters()
-
shouldReturnResponseByMatchingOptionalParameterBody
public void shouldReturnResponseByMatchingOptionalParameterBody()
-
shouldReturnResponseByMatchingMultipleHeadersWithKeyMatchDefault
public void shouldReturnResponseByMatchingMultipleHeadersWithKeyMatchDefault()
-
shouldReturnResponseByMatchingMultipleHeadersWithKeyMatchByKey
public void shouldReturnResponseByMatchingMultipleHeadersWithKeyMatchByKey()
-
shouldReturnResponseByMatchingPathInOrderOfCreationExactTimes
public void shouldReturnResponseByMatchingPathInOrderOfCreationExactTimes()
-
shouldReturnResponseByMatchingPathInOrderOfCreationBeforeExpiry
public void shouldReturnResponseByMatchingPathInOrderOfCreationBeforeExpiry() throws InterruptedException- Throws:
InterruptedException
-
shouldReturnResponseByMatchingPathInOrderOfPriorityExactTimes
public void shouldReturnResponseByMatchingPathInOrderOfPriorityExactTimes()
-
shouldReturnResponseByMatchingPathInOrderOfPriorityWithNegativePriorities
public void shouldReturnResponseByMatchingPathInOrderOfPriorityWithNegativePriorities()
-
shouldReturnResponseByMatchingPathInOrderOfPriorityWithPriorityUpdate
public void shouldReturnResponseByMatchingPathInOrderOfPriorityWithPriorityUpdate()
-
shouldReturnResponseByMatchingPathInOrderOfPriorityWithPriorityUpdateAndExactTimes
public void shouldReturnResponseByMatchingPathInOrderOfPriorityWithPriorityUpdateAndExactTimes()
-
shouldReturnResponseByMatchingPathInOrderOfInsertionAfterUpdate
public void shouldReturnResponseByMatchingPathInOrderOfInsertionAfterUpdate()
-
shouldUpdateExistingExpectation
public void shouldUpdateExistingExpectation()
-
shouldReturnResponseWhenTimeToLiveHasNotExpired
public void shouldReturnResponseWhenTimeToLiveHasNotExpired()
-
shouldReturnMatchRequestWithBodyInUTF16
public void shouldReturnMatchRequestWithBodyInUTF16()
-
shouldReturnMatchRequestWithBodyInUTF8WithContentTypeHeader
public void shouldReturnMatchRequestWithBodyInUTF8WithContentTypeHeader()
-
shouldReturnResponseWithBodyInUTF16
public void shouldReturnResponseWithBodyInUTF16()
-
shouldReturnResponseWithBodyInUTF8WithContentTypeHeader
public void shouldReturnResponseWithBodyInUTF8WithContentTypeHeader()
-
shouldReturnResponseWithBodyInUTF8WithNoContentTypeHeader
public void shouldReturnResponseWithBodyInUTF8WithNoContentTypeHeader()
-
shouldReturnResponseByMatchingSubStringBody
public void shouldReturnResponseByMatchingSubStringBody()
-
shouldReturnResponseByMatchingNotRegexBody
public void shouldReturnResponseByMatchingNotRegexBody()
-
shouldReturnResponseByMatchingNotSubStringBody
public void shouldReturnResponseByMatchingNotSubStringBody()
-
shouldReturnResponseByMatchingNotExactBody
public void shouldReturnResponseByMatchingNotExactBody()
-
shouldReturnResponseByMatchingBodyWithXPath
public void shouldReturnResponseByMatchingBodyWithXPath()
-
shouldReturnResponseByMatchingBodyWithXmlSchema
public void shouldReturnResponseByMatchingBodyWithXmlSchema()
-
shouldReturnResponseByMatchingBodyWithXmlSchemaByClasspath
public void shouldReturnResponseByMatchingBodyWithXmlSchemaByClasspath()
-
shouldReturnResponseByMatchingBodyWithXmlWithSpecialCharactersDefaultingToUTF8
public void shouldReturnResponseByMatchingBodyWithXmlWithSpecialCharactersDefaultingToUTF8()
-
shouldReturnResponseByMatchingBodyWithXmlWithSpecialCharactersAndCharset
public void shouldReturnResponseByMatchingBodyWithXmlWithSpecialCharactersAndCharset()
-
shouldReturnResponseByMatchingBodyWithXmlWithSpecialCharactersClientCharsetDifferent
public void shouldReturnResponseByMatchingBodyWithXmlWithSpecialCharactersClientCharsetDifferent()
-
shouldReturnXmlResponseWithUTF8
public void shouldReturnXmlResponseWithUTF8()
-
shouldReturnResponseByMatchingBodyWithJsonWithSpecialCharactersDefaultingToUTF8
public void shouldReturnResponseByMatchingBodyWithJsonWithSpecialCharactersDefaultingToUTF8()
-
shouldReturnResponseByMatchingBodyWithJsonAsRawBody
public void shouldReturnResponseByMatchingBodyWithJsonAsRawBody()
-
shouldReturnResponseByMatchingBodyWithJsonWithBlankFields
public void shouldReturnResponseByMatchingBodyWithJsonWithBlankFields()
-
shouldReturnResponseByMatchingBodyWithJsonWithCharsetUTF16
public void shouldReturnResponseByMatchingBodyWithJsonWithCharsetUTF16()
-
shouldReturnResponseByMatchingBodyWithJsonWithContentTypeHeaderAndCharsetUTF16
public void shouldReturnResponseByMatchingBodyWithJsonWithContentTypeHeaderAndCharsetUTF16()
-
shouldReturnResponseByMatchingBodyWithJsonWithUTF8
public void shouldReturnResponseByMatchingBodyWithJsonWithUTF8()
-
shouldReturnResponseByMatchingBodyWithJsonWithNoCharset
public void shouldReturnResponseByMatchingBodyWithJsonWithNoCharset()
-
shouldReturnJsonResponseWithJsonWithUTF8
public void shouldReturnJsonResponseWithJsonWithUTF8()
-
shouldReturnResponseByMatchingBodyWithJsonWithMatchType
public void shouldReturnResponseByMatchingBodyWithJsonWithMatchType()
-
shouldReturnResponseByMatchingBodyWithJsonSchema
public void shouldReturnResponseByMatchingBodyWithJsonSchema()
-
shouldReturnResponseByMatchingBodyWithJsonPath
public void shouldReturnResponseByMatchingBodyWithJsonPath()
-
shouldReturnPDFResponseByMatchingPath
public void shouldReturnPDFResponseByMatchingPath() throws IOException- Throws:
IOException
-
shouldReturnPNGResponseByMatchingPath
public void shouldReturnPNGResponseByMatchingPath() throws IOException- Throws:
IOException
-
shouldReturnPDFResponseByMatchingBinaryPDFBody
public void shouldReturnPDFResponseByMatchingBinaryPDFBody() throws IOException- Throws:
IOException
-
shouldReturnPNGResponseByMatchingBinaryPNGBody
public void shouldReturnPNGResponseByMatchingBinaryPNGBody() throws IOException- Throws:
IOException
-
shouldReturnResponseByNotMatchingPathWithNotOperator
public void shouldReturnResponseByNotMatchingPathWithNotOperator()
-
shouldReturnResponseByNotMatchingMethodWithNotOperator
public void shouldReturnResponseByNotMatchingMethodWithNotOperator()
-
shouldReturnResponseByMatchingPathAndMethodAndBody
public void shouldReturnResponseByMatchingPathAndMethodAndBody()
-
shouldReturnResponseByMatchingPathAndMethodAndQueryStringParameters
public void shouldReturnResponseByMatchingPathAndMethodAndQueryStringParameters()
-
shouldReturnResponseByMatchingPathAndMethodAndHeaders
public void shouldReturnResponseByMatchingPathAndMethodAndHeaders()
-
shouldReturnResponseByMatchingPathAndMethodAndCookies
public void shouldReturnResponseByMatchingPathAndMethodAndCookies()
-
shouldReturnResponseByMatchingPathAndMethodAndQueryStringParametersAndBodyParameters
public void shouldReturnResponseByMatchingPathAndMethodAndQueryStringParametersAndBodyParameters()
-
shouldReturnResponseByMatchingPathAndMethodAndQueryStringParametersAndBody
public void shouldReturnResponseByMatchingPathAndMethodAndQueryStringParametersAndBody()
-
shouldReturnResponseByMatchingPathAndMethodAndBodyParameters
public void shouldReturnResponseByMatchingPathAndMethodAndBodyParameters()
-
shouldReturnResponseByMatchingPathAndMethodAndParametersAndHeadersAndCookies
public void shouldReturnResponseByMatchingPathAndMethodAndParametersAndHeadersAndCookies()
-
shouldReturnResponseByNotMatchingBodyParameterWithNotOperatorForName
public void shouldReturnResponseByNotMatchingBodyParameterWithNotOperatorForName()
-
shouldReturnResponseByNotMatchingBodyParameterWithNotOperatorForValue
public void shouldReturnResponseByNotMatchingBodyParameterWithNotOperatorForValue()
-
shouldReturnResponseByNotMatchingQueryStringParameterWithNotOperatorForNameAndValue
public void shouldReturnResponseByNotMatchingQueryStringParameterWithNotOperatorForNameAndValue()
-
shouldReturnResponseByNotMatchingQueryStringParameterWithNotOperatorForName
public void shouldReturnResponseByNotMatchingQueryStringParameterWithNotOperatorForName()
-
shouldReturnResponseByNotMatchingQueryStringParameterWithNotOperatorForValue
public void shouldReturnResponseByNotMatchingQueryStringParameterWithNotOperatorForValue()
-
shouldReturnResponseByNotMatchingCookieWithNotOperatorForNameAndValue
public void shouldReturnResponseByNotMatchingCookieWithNotOperatorForNameAndValue()
-
shouldReturnResponseByNotMatchingCookieWithNotOperatorForName
public void shouldReturnResponseByNotMatchingCookieWithNotOperatorForName()
-
shouldReturnResponseByNotMatchingCookieWithNotOperatorForValue
public void shouldReturnResponseByNotMatchingCookieWithNotOperatorForValue()
-
shouldReturnResponseByNotMatchingHeaderWithNotOperatorForNameAndValue
public void shouldReturnResponseByNotMatchingHeaderWithNotOperatorForNameAndValue()
-
shouldReturnResponseByNotMatchingHeaderWithNotOperatorForName
public void shouldReturnResponseByNotMatchingHeaderWithNotOperatorForName()
-
shouldReturnResponseByNotMatchingHeaderWithNotOperatorForValue
public void shouldReturnResponseByNotMatchingHeaderWithNotOperatorForValue()
-
shouldNotReturnResponseForWhenTimeToLiveExpired
public void shouldNotReturnResponseForWhenTimeToLiveExpired()
-
shouldRemoveExpiredTimeToLiveFromActiveExpectations
public void shouldRemoveExpiredTimeToLiveFromActiveExpectations() throws InterruptedException- Throws:
InterruptedException
-
shouldNotReturnResponseForMatchingBodyWithNotOperator
public void shouldNotReturnResponseForMatchingBodyWithNotOperator()
-
shouldNotReturnResponseForNonMatchingXPathBody
public void shouldNotReturnResponseForNonMatchingXPathBody()
-
shouldNotReturnResponseForNonMatchingXmlBody
public void shouldNotReturnResponseForNonMatchingXmlBody()
-
shouldNotReturnResponseForNonMatchingJsonBody
public void shouldNotReturnResponseForNonMatchingJsonBody()
-
shouldNotReturnResponseForNonMatchingJsonBodyWithMatchType
public void shouldNotReturnResponseForNonMatchingJsonBodyWithMatchType()
-
shouldNotReturnResponseForNonMatchingJsonSchema
public void shouldNotReturnResponseForNonMatchingJsonSchema()
-
shouldNotReturnResponseForNonMatchingJsonPathBody
public void shouldNotReturnResponseForNonMatchingJsonPathBody()
-
shouldNotReturnResponseForMatchingPathWithNotOperator
public void shouldNotReturnResponseForMatchingPathWithNotOperator()
-
shouldNotReturnResponseForMatchingMethodWithNotOperator
public void shouldNotReturnResponseForMatchingMethodWithNotOperator()
-
shouldNotReturnResponseForNonMatchingBodyParameterName
public void shouldNotReturnResponseForNonMatchingBodyParameterName()
-
shouldNotReturnResponseForMatchingBodyParameterWithNotOperator
public void shouldNotReturnResponseForMatchingBodyParameterWithNotOperator()
-
shouldNotReturnResponseForNonMatchingBodyParameterValue
public void shouldNotReturnResponseForNonMatchingBodyParameterValue()
-
shouldNotReturnResponseForNonMatchingQueryStringParameterName
public void shouldNotReturnResponseForNonMatchingQueryStringParameterName()
-
shouldNotReturnResponseForNonMatchingQueryStringParameterValue
public void shouldNotReturnResponseForNonMatchingQueryStringParameterValue()
-
shouldNotReturnResponseForMatchingQueryStringParameterWithNotOperator
public void shouldNotReturnResponseForMatchingQueryStringParameterWithNotOperator()
-
shouldNotReturnResponseForNonMatchingCookieName
public void shouldNotReturnResponseForNonMatchingCookieName()
-
shouldNotReturnResponseForNonMatchingCookieValue
public void shouldNotReturnResponseForNonMatchingCookieValue()
-
shouldNotReturnResponseForMatchingCookieWithNotOperator
public void shouldNotReturnResponseForMatchingCookieWithNotOperator()
-
shouldNotReturnResponseForNonMatchingHeaderName
public void shouldNotReturnResponseForNonMatchingHeaderName()
-
shouldNotReturnResponseForNonMatchingHeaderValue
public void shouldNotReturnResponseForNonMatchingHeaderValue()
-
shouldNotReturnResponseForMatchingHeaderWithNotOperator
public void shouldNotReturnResponseForMatchingHeaderWithNotOperator()
-
shouldVerifyReceivedRequestInSsl
public void shouldVerifyReceivedRequestInSsl()
-
shouldVerifyReceivedRequestsWithRegexBody
public void shouldVerifyReceivedRequestsWithRegexBody()
-
shouldVerifyReceivedRequestsWithNoBody
public void shouldVerifyReceivedRequestsWithNoBody()
-
shouldVerifyReceivedRequestsWithNoMatchingExpectation
public void shouldVerifyReceivedRequestsWithNoMatchingExpectation()
-
shouldVerifyTooManyRequestsReceived
public void shouldVerifyTooManyRequestsReceived()
-
shouldVerifyNoMatchingRequestsReceived
public void shouldVerifyNoMatchingRequestsReceived()
-
shouldNotVerifyNoRequestsReceived
public void shouldNotVerifyNoRequestsReceived()
-
shouldVerifyNoMatchingRequestsReceivedInSsl
public void shouldVerifyNoMatchingRequestsReceivedInSsl()
-
shouldVerifySequenceOfRequestsReceivedIncludingThoseNotMatchingAnException
public void shouldVerifySequenceOfRequestsReceivedIncludingThoseNotMatchingAnException()
-
shouldVerifySequenceOfRequestsNotReceived
public void shouldVerifySequenceOfRequestsNotReceived()
-
shouldRetrieveRecordedRequestsAsJson
public void shouldRetrieveRecordedRequestsAsJson()
-
shouldRetrieveRecordedRequestsAsJsonWithJsonBody
public void shouldRetrieveRecordedRequestsAsJsonWithJsonBody()
-
shouldRetrieveRecordedRequestsAsLogEntries
public void shouldRetrieveRecordedRequestsAsLogEntries() throws com.fasterxml.jackson.core.JsonProcessingException- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
getRequestTcpPortForPath
public String getRequestTcpPortForPath(String path) throws com.fasterxml.jackson.core.JsonProcessingException
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
shouldRetrieveActiveExpectationsAsJson
public void shouldRetrieveActiveExpectationsAsJson()
-
shouldRetrieveActiveExpectationsAsJava
public void shouldRetrieveActiveExpectationsAsJava()
-
shouldRetrieveRecordedExpectationsAsJson
public void shouldRetrieveRecordedExpectationsAsJson()
-
shouldClearExpectationsOnly
public void shouldClearExpectationsOnly()
-
shouldClearExpectationsOnlyByExpectationId
public void shouldClearExpectationsOnlyByExpectationId()
-
shouldClearExpectationsWithIdenticalRequestMatchersByExpectationId
public void shouldClearExpectationsWithIdenticalRequestMatchersByExpectationId()
-
shouldClearLogsOnly
public void shouldClearLogsOnly()
-
shouldClearLogsOnlyByExpectationId
public void shouldClearLogsOnlyByExpectationId()
-
shouldClearAllExpectationsWithNull
public void shouldClearAllExpectationsWithNull()
-
shouldClearAllExpectationsWithEmptyRequest
public void shouldClearAllExpectationsWithEmptyRequest()
-
shouldClearExpectationsWithXPathBody
public void shouldClearExpectationsWithXPathBody()
-
shouldClearExpectationsWithJsonSchemaBody
public void shouldClearExpectationsWithJsonSchemaBody()
-
shouldClearExpectationsWithParameterBody
public void shouldClearExpectationsWithParameterBody()
-
shouldEnsureThatInterruptedRequestsAreVerifiable
public void shouldEnsureThatInterruptedRequestsAreVerifiable()
-
-