Package org.jmock.api
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 TypeMethodDescriptionvoid
describeTo
(org.hamcrest.Description description) static ExpectationError
notAllSatisfied
(org.hamcrest.SelfDescribing expectations) toString()
static ExpectationError
unexpected
(String message, Invocation invocation) Methods inherited from class java.lang.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