com.mockobjects
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, wait
setExpectNothing
public abstract void clearActual()
public boolean hasExpectations()
Expectation
hasExpectations
in interface Expectation
public void setFailOnVerify()
Expectation
setFailOnVerify
in interface Expectation
public abstract void verify()
Verifiable
verify
in interface Verifiable
Copyright © 2002 Mock Objects. All Rights Reserved.