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>
headersToIgnore
protected static EchoServer
insecureEchoServer
protected static MockServerClient
mockServerClient
protected static EchoServer
secureEchoServer
protected static String
servletContext
-
Constructor Summary
Constructors Constructor Description AbstractMockingIntegrationTestBase()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected String
calculatePath(String path)
static void
createClientAndEventLoopGroup()
abstract int
getServerPort()
int
getServerSecurePort()
protected HttpResponse
makeRequest(HttpRequest httpRequest, Collection<String> headersToIgnore)
void
resetServer()
static void
resetServletContext()
static void
startEchoServer()
static void
stopEventLoopGroup()
protected void
verifyRequestsMatches(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)
-
-