public abstract class AbstractMockingIntegrationTestBase extends Object
Modifier and Type | Field and Description |
---|---|
protected static io.netty.channel.EventLoopGroup |
clientEventLoopGroup |
static List<String> |
HEADERS_TO_IGNORE |
protected static NettyHttpClient |
httpClient |
protected static EchoServer |
insecureEchoServer |
protected static MockServerLogger |
MOCK_SERVER_LOGGER |
protected static MockServerClient |
mockServerClient |
protected static EchoServer |
secureEchoServer |
protected static String |
servletContext |
Constructor and Description |
---|
AbstractMockingIntegrationTestBase() |
Modifier and Type | Method and Description |
---|---|
protected String |
addContextToPath(String path) |
protected Header |
authorisationHeader() |
protected String |
calculatePath(String path) |
static void |
createClientAndEventLoopGroup() |
static Headers |
filterHeaders(Collection<String> headersToIgnore,
List<Header> headerList) |
abstract int |
getServerPort() |
int |
getServerSecurePort() |
protected boolean |
isSecureControlPlane() |
protected HttpResponse |
makeRequest(HttpRequest httpRequest,
Collection<String> headersToIgnore) |
void |
resetServer() |
static void |
resetServletContext() |
static void |
startEchoServer() |
static void |
stopEventLoopGroup() |
protected void |
verifyRequestsMatches(LogEventRequestAndResponse[] logEventRequestAndResponses,
HttpRequest... httpRequestMatchers) |
protected void |
verifyRequestsMatches(RequestDefinition[] requestDefinitions,
HttpRequest... httpRequestMatchers) |
protected static final MockServerLogger MOCK_SERVER_LOGGER
protected static MockServerClient mockServerClient
protected static String servletContext
protected static EchoServer insecureEchoServer
protected static EchoServer secureEchoServer
protected static io.netty.channel.EventLoopGroup clientEventLoopGroup
protected static NettyHttpClient httpClient
public static void startEchoServer()
public static void resetServletContext()
public abstract int getServerPort()
public int getServerSecurePort()
protected boolean isSecureControlPlane()
protected Header authorisationHeader()
public void resetServer()
public static void createClientAndEventLoopGroup()
public static void stopEventLoopGroup()
protected void verifyRequestsMatches(RequestDefinition[] requestDefinitions, HttpRequest... httpRequestMatchers)
protected void verifyRequestsMatches(LogEventRequestAndResponse[] logEventRequestAndResponses, HttpRequest... httpRequestMatchers)
protected HttpResponse makeRequest(HttpRequest httpRequest, Collection<String> headersToIgnore)
public static Headers filterHeaders(Collection<String> headersToIgnore, List<Header> headerList)
Copyright © 2022. All rights reserved.