Package com.mockobjects
Class AbstractExpectation
java.lang.Object
com.mockobjects.AbstractExpectation
- All Implemented Interfaces:
Expectation,Verifiable
- Direct Known Subclasses:
AbstractExpectationCollection,ExpectationCounter,ExpectationDoubleValue,ExpectationSegment,ExpectationValue
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidbooleanReturn true if any expectations have been set on this object.voidIf an incorrect actual value is set, defer reporting this as a failure until verify() is called on this object.abstract voidverify()Throw an AssertionFailedException if any expectations have not been met.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.mockobjects.Expectation
setExpectNothing
-
Constructor Details
-
AbstractExpectation
-
-
Method Details
-
clearActual
public abstract void clearActual() -
hasExpectations
public boolean hasExpectations()Description copied from interface:ExpectationReturn true if any expectations have been set on this object.- Specified by:
hasExpectationsin interfaceExpectation
-
setFailOnVerify
public void setFailOnVerify()Description copied from interface:ExpectationIf an incorrect actual value is set, defer reporting this as a failure until verify() is called on this object.- Specified by:
setFailOnVerifyin interfaceExpectation
-
verify
public abstract void verify()Description copied from interface:VerifiableThrow an AssertionFailedException if any expectations have not been met.- Specified by:
verifyin interfaceVerifiable
-