public class StubClient.StubbedResponseBuilder extends Object
Modifier and Type | Method and Description |
---|---|
StubClient.StubbedResponseBuilder |
in(long time,
TimeUnit unit)
Configure delay before the response should be sent.
|
void |
to(org.hamcrest.Matcher<Request> requestMatcher)
Map the previously configured response or response source to any messages matching the
supplied
Matcher . |
void |
to(String uri)
Map the previously configured response or response source to a URI.
|
public StubClient.StubbedResponseBuilder in(long time, TimeUnit unit)
public void to(String uri)
public void to(org.hamcrest.Matcher<Request> requestMatcher)
Matcher
. This gives full freedom to do things like inspect payloads,
headers, etc., to match requests.Copyright © 2016. All rights reserved.