|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
com.github.kristofa.test.http.UnsatisfiedExpectationException
public class UnsatisfiedExpectationException
Indicates there are http requests that we expected but did not get and/or that we got unexpected
http requests.
HttpResponseProvider,
Serialized Form| Constructor Summary | |
|---|---|
UnsatisfiedExpectationException(Collection<HttpRequest> missingRequests,
Collection<HttpRequest> unexpectedRequests)
Creates a new instance. |
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public 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.| Method Detail |
|---|
public Collection<HttpRequest> getMissingHttpRequests()
public Collection<HttpRequest> getUnexpectedHttpRequests()
public String toString()
toString in class Throwable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||