|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jmock.expectation.ExpectationMap
public class ExpectationMap
| Constructor Summary | |
|---|---|
ExpectationMap(String name)
|
|
| Method Summary | |
|---|---|
void |
addExpected(Object key,
Object value)
|
void |
addExpectedMissing(Object key)
|
Object |
get(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 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExpectationMap(String name)
| Method Detail |
|---|
public void addExpected(Object key,
Object value)
public void addExpectedMissing(Object key)
public Object get(Object key)
public boolean hasExpectations()
Expectation
hasExpectations in interface Expectationpublic void setExpectNothing()
Expectation
setExpectNothing in interface Expectationpublic void setFailOnVerify()
Expectation
setFailOnVerify in interface Expectationpublic void verify()
Verifiable
verify in interface Verifiable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||