|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mockobjects.AbstractExpectation
com.mockobjects.ExpectationCounter
public class ExpectationCounter
Constructor Summary | |
---|---|
ExpectationCounter(java.lang.String name)
|
Method Summary | |
---|---|
void |
clearActual()
|
void |
inc()
|
void |
setExpected(int expectedCalls)
|
void |
setExpectNothing()
Tell the object to expect nothing to happen to it, perhaps because the test is exercising the handling of an error. |
void |
verify()
Throw an AssertionFailedException if any expectations have not been met. |
Methods inherited from class com.mockobjects.AbstractExpectation |
---|
hasExpectations, setFailOnVerify |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExpectationCounter(java.lang.String name)
Method Detail |
---|
public void clearActual()
clearActual
in class AbstractExpectation
public void inc()
public void setExpected(int expectedCalls)
public void setExpectNothing()
Expectation
public void verify()
Verifiable
verify
in interface Verifiable
verify
in class AbstractExpectation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |