Class AbstractProxyIntegrationTest

java.lang.Object
org.mockserver.testing.integration.proxy.AbstractProxyIntegrationTest

public abstract class AbstractProxyIntegrationTest extends Object
Author:
jamesdbloom
  • Field Details

    • defaultTimeout

      public org.junit.rules.Timeout defaultTimeout
    • servletContext

      protected static String 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

      public abstract MockServerClient getMockServerClient()
    • getServerPort

      public abstract int getServerPort()
    • getEchoServer

      public abstract EchoServer getEchoServer()
    • calculatePath

      protected String calculatePath(String path)
    • addContextToPath

      protected String addContextToPath(String path)
    • 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:
      URISyntaxException
      IOException
    • shouldReturnResponseByMatchingStringBody

      public void shouldReturnResponseByMatchingStringBody() throws IOException, URISyntaxException
      Throws:
      IOException
      URISyntaxException
    • shouldReturnResponseByMatchingBodyWithJsonSchema

      public void shouldReturnResponseByMatchingBodyWithJsonSchema() throws URISyntaxException, IOException
      Throws:
      URISyntaxException
      IOException
    • shouldVerifyRequests

      public void shouldVerifyRequests() throws Exception
      Throws:
      Exception
    • shouldVerifyRequestsSequence

      public void shouldVerifyRequestsSequence() throws Exception
      Throws:
      Exception
    • shouldVerifyRequestsWithHopByHopHeaders

      public void shouldVerifyRequestsWithHopByHopHeaders() throws Exception
      Throws:
      Exception
    • shouldVerifyZeroRequests

      public void shouldVerifyZeroRequests() 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
    • shouldClearRequests

      public void shouldClearRequests() throws Exception
      Throws:
      Exception
    • shouldResetRequests

      public void shouldResetRequests() throws Exception
      Throws:
      Exception
    • shouldReturnErrorForInvalidRequestToClear

      public void shouldReturnErrorForInvalidRequestToClear() throws Exception
      Throws:
      Exception
    • shouldReturnErrorForInvalidRequestToVerify

      public void shouldReturnErrorForInvalidRequestToVerify() throws Exception
      Throws:
      Exception
    • shouldReturnErrorForInvalidRequestToVerifySequence

      public void shouldReturnErrorForInvalidRequestToVerifySequence() throws Exception
      Throws:
      Exception