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