Class AbstractMockingIntegrationTestBase

java.lang.Object
org.mockserver.testing.integration.mock.AbstractMockingIntegrationTestBase
Direct Known Subclasses:
AbstractControlPlaneIntegrationTest, AbstractPackagingSmokeTest, AbstractTransportAgnosticSemanticsIntegrationTest, AbstractTransportDecodeSmokeIntegrationTest

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

    • defaultTimeout

      public org.junit.rules.Timeout defaultTimeout
    • MOCK_SERVER_LOGGER

      protected static final MockServerLogger MOCK_SERVER_LOGGER
    • mockServerClient

      protected static MockServerClient mockServerClient
    • servletContext

      protected static String servletContext
    • HEADERS_TO_IGNORE

      public static final List<String> HEADERS_TO_IGNORE
    • insecureEchoServer

      protected static EchoServer insecureEchoServer
    • secureEchoServer

      protected static EchoServer secureEchoServer
    • clientEventLoopGroup

      protected static io.netty.channel.EventLoopGroup clientEventLoopGroup
    • httpClient

      protected static NettyHttpClient httpClient
  • Constructor Details

    • AbstractMockingIntegrationTestBase

      public AbstractMockingIntegrationTestBase()
  • Method Details

    • startEchoServer

      public static void startEchoServer()
    • resetServletContext

      public static void resetServletContext()
    • getHeadersToRemove

      public List<String> getHeadersToRemove()
    • getServerPort

      public abstract int getServerPort()
    • getServerSecurePort

      public int getServerSecurePort()
    • isSecureControlPlane

      protected boolean isSecureControlPlane()
    • authorisationHeader

      protected Header authorisationHeader()
    • getRequestModifier

      public HttpRequest getRequestModifier(HttpRequest httpRequest)
    • resetServer

      public void resetServer()
    • calculatePath

      protected String calculatePath(String path)
    • createClientAndEventLoopGroup

      public static void createClientAndEventLoopGroup()
    • stopEventLoopGroup

      public static void stopEventLoopGroup()
    • addContextToPath

      protected String addContextToPath(String path)
    • verifyRequestsMatches

      protected void verifyRequestsMatches(RequestDefinition[] requestDefinitions, HttpRequest... httpRequestMatchers)
    • verifyRequestsMatches

      protected void verifyRequestsMatches(LogEventRequestAndResponse[] logEventRequestAndResponses, HttpRequest... httpRequestMatchers)
    • makeRequest

      protected HttpResponse makeRequest(HttpRequest httpRequest, Collection<String> headersToRemove)
    • filterHeaders

      public static Headers filterHeaders(Collection<String> headersToIgnore, List<Header> headerList)