atunit.jmock
Class NoMockeryException
java.lang.Object
java.lang.Throwable
java.lang.Exception
atunit.jmock.NoMockeryException
- All Implemented Interfaces:
- Serializable
public class NoMockeryException
- extends Exception
Thrown when a test has fields marked as mocks, but no field with a type
assignable from Mockery
.
JMock mock objects are useless without access to the Mockery
(context) from which they were created; presence of the former without the
latter implies a mistake.
- Author:
- Logan Johnson <logan.johnson@gmail.com>
- See Also:
- Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
NoMockeryException
public NoMockeryException()