public class MockHttpServer
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
java.util.List<HttpRequest> |
getUnmatched() |
static MockHttpServer |
listenAt(int port) |
MockHttpServer |
mount(java.lang.String path,
HttpService service) |
protected void |
reset() |
void |
start() |
void |
stop() |
MockHttpServer |
verify(java.util.function.Predicate<HttpRequest> predicate) |
MockHttpServer |
when(java.util.function.Predicate<HttpRequest> predicate,
java.util.function.Function<HttpRequest,HttpResponse> handler) |
public static MockHttpServer listenAt(int port)
public MockHttpServer mount(java.lang.String path, HttpService service)
public MockHttpServer when(java.util.function.Predicate<HttpRequest> predicate, java.util.function.Function<HttpRequest,HttpResponse> handler)
public void start()
public void stop()
public MockHttpServer verify(java.util.function.Predicate<HttpRequest> predicate)
public java.util.List<HttpRequest> getUnmatched()
protected void reset()