Class AbstractMockingIntegrationTestBase
java.lang.Object
org.mockserver.testing.integration.mock.AbstractMockingIntegrationTestBase
- Direct Known Subclasses:
AbstractControlPlaneIntegrationTest,AbstractPackagingSmokeTest,AbstractTransportAgnosticSemanticsIntegrationTest,AbstractTransportDecodeSmokeIntegrationTest
- Author:
- jamesdbloom
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static io.netty.channel.EventLoopGrouporg.junit.rules.Timeoutprotected static NettyHttpClientprotected static EchoServerprotected static final MockServerLoggerprotected static MockServerClientprotected static EchoServerprotected static String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringaddContextToPath(String path) protected Headerprotected StringcalculatePath(String path) static voidstatic HeadersfilterHeaders(Collection<String> headersToIgnore, List<Header> headerList) getRequestModifier(HttpRequest httpRequest) abstract intintprotected booleanprotected HttpResponsemakeRequest(HttpRequest httpRequest, Collection<String> headersToRemove) voidstatic voidstatic voidstatic voidprotected voidverifyRequestsMatches(LogEventRequestAndResponse[] logEventRequestAndResponses, HttpRequest... httpRequestMatchers) protected voidverifyRequestsMatches(RequestDefinition[] requestDefinitions, HttpRequest... httpRequestMatchers)
-
Field Details
-
defaultTimeout
public org.junit.rules.Timeout defaultTimeout -
MOCK_SERVER_LOGGER
-
mockServerClient
-
servletContext
-
HEADERS_TO_IGNORE
-
insecureEchoServer
-
secureEchoServer
-
clientEventLoopGroup
protected static io.netty.channel.EventLoopGroup clientEventLoopGroup -
httpClient
-
-
Constructor Details
-
AbstractMockingIntegrationTestBase
public AbstractMockingIntegrationTestBase()
-
-
Method Details
-
startEchoServer
public static void startEchoServer() -
resetServletContext
public static void resetServletContext() -
getHeadersToRemove
-
getServerPort
public abstract int getServerPort() -
getServerSecurePort
public int getServerSecurePort() -
isSecureControlPlane
protected boolean isSecureControlPlane() -
authorisationHeader
-
getRequestModifier
-
resetServer
public void resetServer() -
calculatePath
-
createClientAndEventLoopGroup
public static void createClientAndEventLoopGroup() -
stopEventLoopGroup
public static void stopEventLoopGroup() -
addContextToPath
-
verifyRequestsMatches
protected void verifyRequestsMatches(RequestDefinition[] requestDefinitions, HttpRequest... httpRequestMatchers) -
verifyRequestsMatches
protected void verifyRequestsMatches(LogEventRequestAndResponse[] logEventRequestAndResponses, HttpRequest... httpRequestMatchers) -
makeRequest
-
filterHeaders
-