Class AbstractProxyIntegrationTest
- java.lang.Object
-
- org.mockserver.testing.integration.proxy.AbstractProxyIntegrationTest
-
public abstract class AbstractProxyIntegrationTest extends Object
- Author:
- jamesdbloom
-
-
Field Summary
Fields Modifier and Type Field Description org.junit.rules.TimeoutdefaultTimeoutprotected static StringservletContext
-
Constructor Summary
Constructors Constructor Description AbstractProxyIntegrationTest()
-
Method Summary
-
-
-
Field Detail
-
defaultTimeout
public org.junit.rules.Timeout defaultTimeout
-
servletContext
protected static String servletContext
-
-
Method Detail
-
createClientAndEventLoopGroup
public static void createClientAndEventLoopGroup()
-
stopEventLoopGroup
public static void stopEventLoopGroup()
-
createHttpClient
protected org.apache.http.client.HttpClient createHttpClient()
-
getProxyPort
public abstract int getProxyPort()
-
getMockServerClient
public abstract MockServerClient getMockServerClient()
-
getServerPort
public abstract int getServerPort()
-
getEchoServer
public abstract EchoServer getEchoServer()
-
resetServer
public void resetServer()
-
shouldForwardRequestsUsingSocketDirectly
public void shouldForwardRequestsUsingSocketDirectly() throws Exception- Throws:
Exception
-
shouldForwardRequestsUsingHttpClient
public void shouldForwardRequestsUsingHttpClient() throws Exception- Throws:
Exception
-
shouldForwardRequestsWithComplexCookies
public void shouldForwardRequestsWithComplexCookies() throws Exception- Throws:
Exception
-
shouldForwardRequestsWithCharset
public void shouldForwardRequestsWithCharset() throws Exception- Throws:
Exception
-
shouldForwardRequestsToUnknownPath
public void shouldForwardRequestsToUnknownPath() throws Exception- Throws:
Exception
-
shouldForwardRequestsWithBlankQueryParameter
public void shouldForwardRequestsWithBlankQueryParameter() throws Exception- Throws:
Exception
-
shouldForwardRequestsWithQueryParameterStartingWithExclamationMark
public void shouldForwardRequestsWithQueryParameterStartingWithExclamationMark() throws Exception- Throws:
Exception
-
shouldReturnResponseByMatchingPathExactTimes
public void shouldReturnResponseByMatchingPathExactTimes() throws URISyntaxException, IOException- Throws:
URISyntaxExceptionIOException
-
shouldReturnResponseByMatchingStringBody
public void shouldReturnResponseByMatchingStringBody() throws IOException, URISyntaxException- Throws:
IOExceptionURISyntaxException
-
shouldReturnResponseByMatchingBodyWithJsonSchema
public void shouldReturnResponseByMatchingBodyWithJsonSchema() throws URISyntaxException, IOException- Throws:
URISyntaxExceptionIOException
-
shouldVerifyRequestsSequence
public void shouldVerifyRequestsSequence() throws Exception- Throws:
Exception
-
shouldVerifyRequestsWithHopByHopHeaders
public void shouldVerifyRequestsWithHopByHopHeaders() throws Exception- Throws:
Exception
-
shouldVerifyNoRequestsExactly
public void shouldVerifyNoRequestsExactly() throws Exception- Throws:
Exception
-
shouldVerifyNoRequestsTimesNotSpecified
public void shouldVerifyNoRequestsTimesNotSpecified() throws Exception- Throws:
Exception
-
shouldVerifyNotEnoughRequests
public void shouldVerifyNotEnoughRequests() throws Exception- Throws:
Exception
-
shouldVerifyRequestsSequenceNotFound
public void shouldVerifyRequestsSequenceNotFound() throws Exception- Throws:
Exception
-
shouldReturnErrorForInvalidRequestToClear
public void shouldReturnErrorForInvalidRequestToClear() throws Exception- Throws:
Exception
-
shouldReturnErrorForInvalidRequestToVerify
public void shouldReturnErrorForInvalidRequestToVerify() throws Exception- Throws:
Exception
-
-