Class AbstractMockingIntegrationTestBase
- java.lang.Object
-
- org.mockserver.testing.integration.mock.AbstractMockingIntegrationTestBase
-
- Direct Known Subclasses:
AbstractBasicMockingIntegrationTest
public abstract class AbstractMockingIntegrationTestBase extends Object
- Author:
- jamesdbloom
-
-
Field Summary
Fields Modifier and Type Field Description protected static io.netty.channel.EventLoopGroupclientEventLoopGrouporg.junit.rules.TimeoutdefaultTimeoutstatic List<String>HEADERS_TO_IGNOREprotected static NettyHttpClienthttpClientprotected static EchoServerinsecureEchoServerprotected static MockServerLoggerMOCK_SERVER_LOGGERprotected static MockServerClientmockServerClientprotected static EchoServersecureEchoServerprotected static StringservletContext
-
Constructor Summary
Constructors Constructor Description AbstractMockingIntegrationTestBase()
-
Method Summary
-
-
-
Field Detail
-
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
-
insecureEchoServer
protected static EchoServer insecureEchoServer
-
secureEchoServer
protected static EchoServer secureEchoServer
-
clientEventLoopGroup
protected static io.netty.channel.EventLoopGroup clientEventLoopGroup
-
httpClient
protected static NettyHttpClient httpClient
-
-
Method Detail
-
startEchoServer
public static void startEchoServer()
-
resetServletContext
public static void resetServletContext()
-
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()
-
createClientAndEventLoopGroup
public static void createClientAndEventLoopGroup()
-
stopEventLoopGroup
public static void stopEventLoopGroup()
-
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)
-
-