public abstract class AbstractExpectation extends java.lang.Object implements Verifiable, Expectation
| Constructor and Description |
|---|
AbstractExpectation(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
clearActual() |
boolean |
hasExpectations()
Return true if any expectations have been set on this object.
|
void |
setFailOnVerify()
If an incorrect actual value is set, defer reporting this as a failure until verify()
is called on this object.
|
abstract void |
verify()
Throw an AssertionFailedException if any expectations have not been met.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetExpectNothingpublic abstract void clearActual()
public boolean hasExpectations()
ExpectationhasExpectations in interface Expectationpublic void setFailOnVerify()
ExpectationsetFailOnVerify in interface Expectationpublic abstract void verify()
Verifiableverify in interface VerifiableCopyright © 2002 Mock Objects. All Rights Reserved.