Class AbstractProxyIntegrationTest
java.lang.Object
org.mockserver.testing.integration.proxy.AbstractProxyIntegrationTest
- Author:
- jamesdbloom
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringaddContextToPath(String path) protected StringcalculatePath(String path) static voidprotected org.apache.http.client.HttpClientabstract EchoServerabstract MockServerClientabstract intabstract intvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidstatic void
-
Field Details
-
defaultTimeout
public org.junit.rules.Timeout defaultTimeout -
servletContext
-
-
Constructor Details
-
AbstractProxyIntegrationTest
public AbstractProxyIntegrationTest()
-
-
Method Details
-
createClientAndEventLoopGroup
public static void createClientAndEventLoopGroup() -
stopEventLoopGroup
public static void stopEventLoopGroup() -
createHttpClient
protected org.apache.http.client.HttpClient createHttpClient() -
getProxyPort
public abstract int getProxyPort() -
getMockServerClient
-
getServerPort
public abstract int getServerPort() -
getEchoServer
-
calculatePath
-
addContextToPath
-
resetServer
public void resetServer() -
shouldForwardRequestsUsingSocketDirectly
- Throws:
Exception
-
shouldForwardRequestsUsingHttpClient
- Throws:
Exception
-
shouldForwardRequestsWithComplexCookies
- Throws:
Exception
-
shouldForwardRequestsWithCharset
- Throws:
Exception
-
shouldForwardRequestsToUnknownPath
- Throws:
Exception
-
shouldForwardRequestsWithBlankQueryParameter
- Throws:
Exception
-
shouldForwardRequestsWithQueryParameterStartingWithExclamationMark
- Throws:
Exception
-
shouldReturnResponseByMatchingPathExactTimes
- Throws:
URISyntaxExceptionIOException
-
shouldReturnResponseByMatchingStringBody
- Throws:
IOExceptionURISyntaxException
-
shouldReturnResponseByMatchingBodyWithJsonSchema
public void shouldReturnResponseByMatchingBodyWithJsonSchema() throws URISyntaxException, IOException- Throws:
URISyntaxExceptionIOException
-
shouldVerifyRequests
- Throws:
Exception
-
shouldVerifyRequestsSequence
- Throws:
Exception
-
shouldVerifyRequestsWithHopByHopHeaders
- Throws:
Exception
-
shouldVerifyZeroRequests
- Throws:
Exception
-
shouldVerifyNoRequestsExactly
- Throws:
Exception
-
shouldVerifyNoRequestsTimesNotSpecified
- Throws:
Exception
-
shouldVerifyNotEnoughRequests
- Throws:
Exception
-
shouldVerifyRequestsSequenceNotFound
- Throws:
Exception
-
shouldClearRequests
- Throws:
Exception
-
shouldResetRequests
- Throws:
Exception
-
shouldReturnErrorForInvalidRequestToClear
- Throws:
Exception
-
shouldReturnErrorForInvalidRequestToVerify
- Throws:
Exception
-
shouldReturnErrorForInvalidRequestToVerifySequence
- Throws:
Exception
-