public abstract class AbstractMockHttpServerTest extends Object
AbstractMockHttpServerTest can communicate with a
mock Http endpoint that behavious like a real server.
The idea behind this class is that http responses can be tested (regardless
of the input request).| Constructor and Description |
|---|
AbstractMockHttpServerTest() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
setResponseResource(org.springframework.core.io.Resource responseResource)
Set the expected response on the Handler
|
protected void |
setResponseResource(org.springframework.core.io.Resource[] responseResource)
Set the expected response on the Handler
|
protected void |
setStatus(int status) |
static void |
startServer() |
static void |
stopServer() |
public static void startServer()
public static void stopServer()
protected void setResponseResource(org.springframework.core.io.Resource responseResource)
responseResource - the resource of the file containing the xml responseprotected void setResponseResource(org.springframework.core.io.Resource[] responseResource)
responseResource - the resource of the file containing the xml responseprotected void setStatus(int status)
Copyright © 2013. All Rights Reserved.