Class AbstractMockingIntegrationTestBase
- java.lang.Object
-
- org.mockserver.integration.server.AbstractMockingIntegrationTestBase
-
- Direct Known Subclasses:
AbstractBasicMockingIntegrationTest
public abstract class AbstractMockingIntegrationTestBase extends Object
- Author:
- jamesdbloom
-
-
Field Summary
Fields Modifier and Type Field Description protected static List<String>headersToIgnoreprotected static EchoServerinsecureEchoServerprotected static MockServerClientmockServerClientprotected static EchoServersecureEchoServerprotected static StringservletContext
-
Constructor Summary
Constructors Constructor Description AbstractMockingIntegrationTestBase()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected StringcalculatePath(String path)static voidcreateClientAndEventLoopGroup()abstract intgetServerPort()intgetServerSecurePort()protected HttpResponsemakeRequest(HttpRequest httpRequest, Collection<String> headersToIgnore)voidresetServer()static voidresetServletContext()static voidstartEchoServer()static voidstopEventLoopGroup()protected voidverifyRequestsMatches(HttpRequest[] httpRequests, HttpRequest... httpRequestMatchers)
-
-
-
Field Detail
-
mockServerClient
protected static MockServerClient mockServerClient
-
servletContext
protected static String servletContext
-
insecureEchoServer
protected static EchoServer insecureEchoServer
-
secureEchoServer
protected static EchoServer secureEchoServer
-
-
Method Detail
-
startEchoServer
public static void startEchoServer()
-
resetServletContext
public static void resetServletContext()
-
getServerPort
public abstract int getServerPort()
-
getServerSecurePort
public int getServerSecurePort()
-
resetServer
public void resetServer()
-
createClientAndEventLoopGroup
public static void createClientAndEventLoopGroup()
-
stopEventLoopGroup
public static void stopEventLoopGroup()
-
verifyRequestsMatches
protected void verifyRequestsMatches(HttpRequest[] httpRequests, HttpRequest... httpRequestMatchers)
-
makeRequest
protected HttpResponse makeRequest(HttpRequest httpRequest, Collection<String> headersToIgnore)
-
-