public class Verifying extends AbstractRequestMatching<Verifying>
Jadler.verifyThatRequest()
for more information
on creating instances of this class.predicates
Constructor and Description |
---|
Verifying(RequestManager requestManager) |
Modifier and Type | Method and Description |
---|---|
void |
receivedNever()
Checks that no request described in this verifying object has been received so far.
|
void |
receivedOnce()
Checks that exactly one request described in this verifying object has been received so far.
|
void |
receivedTimes(int count)
Checks whether the number of requests described in this verifying object received so far matches the exact value.
|
void |
receivedTimes(org.hamcrest.Matcher<Integer> nrRequestsPredicate)
Checks whether the number of requests described in this verifying object received so far matches the given predicate.
|
havingBody, havingBodyEqualTo, havingHeader, havingHeader, havingHeaderEqualTo, havingHeaders, havingMethod, havingMethodEqualTo, havingParameter, havingParameter, havingParameterEqualTo, havingParameters, havingPath, havingPathEqualTo, havingQueryString, havingQueryStringEqualTo, havingRawBodyEqualTo, that
public Verifying(RequestManager requestManager)
requestManager
- request manager instance to assist the verificationpublic void receivedTimes(org.hamcrest.Matcher<Integer> nrRequestsPredicate)
nrRequestsPredicate
- to be applied on the number of requestsVerificationException
- if the number of requests described by this verifying is not matched by the given
predicatepublic void receivedTimes(int count)
count
- expected number of requests described by this verifying objectVerificationException
- if the number of requests described in this verifying object received so far
is not equal to the expected valuepublic void receivedOnce()
VerificationException
- if the number of expected requests is not equal to onepublic void receivedNever()
VerificationException
- if at least one request described in this object has already been receivedCopyright © 2016. All Rights Reserved.