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 voidassertEquals(String message, int o1, int o2) protected voidassertEquals(String message, Object o1, Object o2) protected voidassertTrue(String message, boolean condition) protected voidvoidprotected voidDeprecated.static voidnotYetImplemented(String mockName) Deprecated.voidverify()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:VerifiableThrow 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:
verifyin interfaceVerifiable
-