Verifiable
ExpectationCollection
AbstractExpectation
, AbstractExpectationCollection
, ExpectationCounter
, ExpectationDoubleValue
, ExpectationList
, ExpectationMap
, ExpectationSegment
, ExpectationSet
, ExpectationValue
public interface Expectation extends Verifiable
Modifier and Type | Method | Description |
---|---|---|
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.
|
verify
boolean hasExpectations()
void setExpectNothing()
void setFailOnVerify()