|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.mockobjects.ExpectationMap
Constructor Summary | |
ExpectationMap(java.lang.String name)
|
Method Summary | |
void |
addExpected(java.lang.Object key,
java.lang.Object value)
|
void |
addExpectedMissing(java.lang.Object key)
|
java.lang.Object |
get(java.lang.Object key)
|
boolean |
hasExpectations()
Return true if any expectations have been set on this object. |
void |
setExpectNothing()
Tell the object to expect nothing to happen to it, perhaps because the test is exercising the handling of an error. |
void |
setFailOnVerify()
If an incorrect actual value is set, defer reporting this as a failure until verify() is called on this object. |
void |
verify()
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, wait |
Constructor Detail |
public ExpectationMap(java.lang.String name)
Method Detail |
public void addExpected(java.lang.Object key, java.lang.Object value)
public void addExpectedMissing(java.lang.Object key)
public java.lang.Object get(java.lang.Object key)
public boolean hasExpectations()
Expectation
hasExpectations
in interface Expectation
public void setExpectNothing()
Expectation
setExpectNothing
in interface Expectation
public void setFailOnVerify()
Expectation
setFailOnVerify
in interface Expectation
public void verify()
Verifiable
verify
in interface Verifiable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |