Package org.jmock.expectation
Class MockObject
- java.lang.Object
-
- org.jmock.expectation.MockObject
-
- All Implemented Interfaces:
Verifiable
- Direct Known Subclasses:
ReturnObjectMap
public abstract class MockObject extends java.lang.Object implements Verifiable
-
-
Constructor Summary
Constructors Constructor Description MockObject()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected voidassertEquals(java.lang.String message, int o1, int o2)protected voidassertEquals(java.lang.String message, java.lang.Object o1, java.lang.Object o2)protected voidassertTrue(java.lang.String message, boolean condition)protected voidfail(java.lang.String message)voidnotImplemented()protected voidnotYetImplemented()Deprecated.static voidnotYetImplemented(java.lang.String mockName)Deprecated.voidverify()Throw an AssertionFailedException if any expectations have not been met.
-
-
-
Method Detail
-
assertEquals
protected void assertEquals(java.lang.String message, int o1, int o2)
-
assertEquals
protected void assertEquals(java.lang.String message, java.lang.Object o1, java.lang.Object o2)
-
assertTrue
protected void assertTrue(java.lang.String message, boolean condition)
-
fail
protected void fail(java.lang.String message)
-
notImplemented
public void notImplemented()
-
notYetImplemented
protected void notYetImplemented()
Deprecated.
-
notYetImplemented
public static void notYetImplemented(java.lang.String mockName)
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
-
-