public class MockServerExpectationImpl extends Object implements MockServerExpectation
| Constructor and Description |
|---|
MockServerExpectationImpl(Map<io.fabric8.docker.server.mock.ServerRequest,Queue<io.fabric8.docker.server.mock.ServerResponse>> responses) |
MockServerExpectationImpl(String method,
String path,
int statusCode,
String body,
int times,
Map<io.fabric8.docker.server.mock.ServerRequest,Queue<io.fabric8.docker.server.mock.ServerResponse>> responses) |
| Modifier and Type | Method and Description |
|---|---|
void |
always() |
Timeable |
andReturn(int statusCode,
Object content) |
Pathable<Returnable<Timeable>> |
any() |
Pathable<Returnable<Timeable>> |
delete() |
Pathable<Returnable<Timeable>> |
get() |
void |
once() |
Pathable<Returnable<Timeable>> |
post() |
Pathable<Returnable<Timeable>> |
put() |
void |
times(int times) |
Returnable<Timeable> |
withPath(String path) |
public MockServerExpectationImpl(Map<io.fabric8.docker.server.mock.ServerRequest,Queue<io.fabric8.docker.server.mock.ServerResponse>> responses)
public Pathable<Returnable<Timeable>> any()
any in interface HttpMethodable<Pathable<Returnable<Timeable>>>public Pathable<Returnable<Timeable>> post()
post in interface HttpMethodable<Pathable<Returnable<Timeable>>>public Pathable<Returnable<Timeable>> get()
get in interface HttpMethodable<Pathable<Returnable<Timeable>>>public Pathable<Returnable<Timeable>> put()
put in interface HttpMethodable<Pathable<Returnable<Timeable>>>public Pathable<Returnable<Timeable>> delete()
delete in interface HttpMethodable<Pathable<Returnable<Timeable>>>public Returnable<Timeable> withPath(String path)
withPath in interface Pathable<Returnable<Timeable>>public Timeable andReturn(int statusCode, Object content)
andReturn in interface Returnable<Timeable>Copyright © 2015–2016 Red Hat. All rights reserved.