org.jmock.api
Class ExpectationError
java.lang.Object
java.lang.Throwable
java.lang.Error
org.jmock.api.ExpectationError
- All Implemented Interfaces:
- java.io.Serializable
public class ExpectationError
- extends java.lang.Error
An error thrown when an expectation is violated during a test.
- Author:
- npryce
- See Also:
- Serialized Form
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 |
expectations
public final SelfDescribing expectations
invocation
public final Invocation invocation
ExpectationError
public ExpectationError(java.lang.String message,
SelfDescribing expectations,
Invocation invocation)
ExpectationError
public ExpectationError(java.lang.String message,
Invocation invocation)
ExpectationError
public ExpectationError(java.lang.String message,
SelfDescribing expectations)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Throwable
describeTo
public void describeTo(Description description)