Package | Description |
---|---|
net.jadler | |
net.jadler.matchers | |
net.jadler.stubbing |
Modifier and Type | Field and Description |
---|---|
protected List<org.hamcrest.Matcher<? super Request>> |
AbstractRequestMatching.predicates |
Modifier and Type | Method and Description |
---|---|
Request |
Request.Builder.build() |
Modifier and Type | Method and Description |
---|---|
StubResponse |
RequestManager.provideStubResponseFor(Request req)
Returns a stub response for the given request.
|
StubResponse |
JadlerMocker.provideStubResponseFor(Request request)
Returns a stub response for the given request.
|
Modifier and Type | Method and Description |
---|---|
void |
RequestManager.evaluateVerification(Collection<org.hamcrest.Matcher<? super Request>> requestPredicates,
org.hamcrest.Matcher<Integer> nrRequestsPredicate)
Verifies whether the number of received http requests fitting the given predicates is as expected.
|
void |
JadlerMocker.evaluateVerification(Collection<org.hamcrest.Matcher<? super Request>> requestPredicates,
org.hamcrest.Matcher<Integer> nrRequestsPredicate) |
int |
RequestManager.numberOfRequestsMatching(Collection<org.hamcrest.Matcher<? super Request>> predicates)
Deprecated.
this (rather internal) method has been deprecated. Please use
RequestManager.evaluateVerification(java.util.Collection, org.hamcrest.Matcher) instead |
int |
JadlerMocker.numberOfRequestsMatching(Collection<org.hamcrest.Matcher<? super Request>> predicates)
Deprecated.
|
T |
RequestMatching.that(org.hamcrest.Matcher<? super Request> predicate)
Adds a request predicate to this request matching.
|
T |
AbstractRequestMatching.that(org.hamcrest.Matcher<? super Request> predicate)
Adds a request predicate to this request matching.
|
Modifier and Type | Method and Description |
---|---|
protected abstract T |
RequestMatcher.retrieveValue(Request req)
Reads a value of the given request object (the value can be anything retrievable from the request
object: method, header, body,...).
|
protected byte[] |
RawBodyRequestMatcher.retrieveValue(Request req)
Retrieves the body of the given request
|
String |
QueryStringRequestMatcher.retrieveValue(Request req)
Retrieves the query string value of the given request.
|
String |
PathRequestMatcher.retrieveValue(Request req)
Retrieves the path of the given request.
|
protected List<String> |
ParameterRequestMatcher.retrieveValue(Request req)
Retrieves a parameter (defined in
ParameterRequestMatcher.ParameterRequestMatcher(org.hamcrest.Matcher, java.lang.String) )
of the given request. |
protected String |
MethodRequestMatcher.retrieveValue(Request req)
Retrieves the the method of the given request
|
protected List<String> |
HeaderRequestMatcher.retrieveValue(Request req)
Retrieves a header (defined in
HeaderRequestMatcher.HeaderRequestMatcher(org.hamcrest.Matcher, java.lang.String) )
of the given request. |
protected String |
BodyRequestMatcher.retrieveValue(Request req)
Retrieves the body of the given request
|
Modifier and Type | Method and Description |
---|---|
String |
HttpStub.describeMismatch(Request request)
Returns a reason why the given request doesn't match this rule.
|
boolean |
HttpStub.matches(Request request) |
StubResponse |
Responder.nextResponse(Request request)
Generates dynamically a stub response for an http request fitting the WHEN part.
|
StubResponse |
HttpStub.nextResponse(Request request) |
Constructor and Description |
---|
HttpStub(Collection<org.hamcrest.Matcher<? super Request>> predicates,
Responder responder) |
Copyright © 2016. All Rights Reserved.