Package org.jmock.expectation
Class MockObject
java.lang.Object
org.jmock.expectation.MockObject
- All Implemented Interfaces:
Verifiable
- Direct Known Subclasses:
ReturnObjectMap
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
assertEquals
(String message, int o1, int o2) protected void
assertEquals
(String message, Object o1, Object o2) protected void
assertTrue
(String message, boolean condition) protected void
void
protected void
Deprecated.static void
notYetImplemented
(String mockName) Deprecated.void
verify()
Throw an AssertionFailedException if any expectations have not been met.
-
Constructor Details
-
MockObject
public MockObject()
-
-
Method Details
-
assertEquals
-
assertEquals
-
assertTrue
-
fail
-
notImplemented
public void notImplemented() -
notYetImplemented
protected void notYetImplemented()Deprecated. -
notYetImplemented
Deprecated. -
verify
public void verify()Description copied from interface:Verifiable
Throw an AssertionFailedException if any expectations have not been met. Implementations of this method must be idempotent: jMock can call this method more than once when verifying expectations at the end of a test.- Specified by:
verify
in interfaceVerifiable
-