Class ExpectationError
java.lang.Object
java.lang.Throwable
java.lang.Error
org.jmock.api.ExpectationError
- All Implemented Interfaces:
Serializable, org.hamcrest.SelfDescribing
An error thrown when an expectation is violated during a test.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionExpectationError(String message, org.hamcrest.SelfDescribing expectations, Invocation invocation) -
Method Summary
Modifier and TypeMethodDescriptionvoiddescribeTo(org.hamcrest.Description description) static ExpectationErrornotAllSatisfied(org.hamcrest.SelfDescribing expectations) toString()static ExpectationErrorunexpected(String message, Invocation invocation) Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Field Details
-
expectations
public final org.hamcrest.SelfDescribing expectations -
invocation
-
-
Constructor Details
-
ExpectationError
public ExpectationError(String message, org.hamcrest.SelfDescribing expectations, Invocation invocation)
-
-
Method Details
-
unexpected
-
notAllSatisfied
-
toString
-
describeTo
public void describeTo(org.hamcrest.Description description) - Specified by:
describeToin interfaceorg.hamcrest.SelfDescribing
-