public class UnsatisfiedExpectationException extends Exception
http requests that we expected but did not get and/or that we got unexpected
http requests.HttpResponseProvider,
Serialized Form| Constructor and Description |
|---|
UnsatisfiedExpectationException(Collection<HttpRequest> missingRequests,
Collection<HttpRequest> unexpectedRequests)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
Collection<HttpRequest> |
getMissingHttpRequests()
Gets the http requests that we expected but did not get.
|
Collection<HttpRequest> |
getUnexpectedHttpRequests()
Gets the http requests that we got but did not expect.
|
String |
toString() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTracepublic UnsatisfiedExpectationException(Collection<HttpRequest> missingRequests, Collection<HttpRequest> unexpectedRequests)
Both collections should not be null. One of both collections can be empty.
missingRequests - Requests that we expected but did not get.unexpectedRequests - Requests that we got but did not expect.public Collection<HttpRequest> getMissingHttpRequests()
public Collection<HttpRequest> getUnexpectedHttpRequests()
Copyright © 2014. All Rights Reserved.