Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.jmock.expectation.AbstractExpectation
org.jmock.expectation.AbstractExpectationCollection
public abstract class AbstractExpectationCollection
extends AbstractExpectation
implements ExpectationCollection
Field Summary |
Fields inherited from class org.jmock.expectation.AbstractExpectation | |
myFailureModeIsImmediate , myName |
Constructor Summary | |
|
Method Summary | |
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
protected void |
|
void | |
protected void | |
protected Collection | |
protected Collection | |
void |
|
void |
|
Methods inherited from class org.jmock.expectation.AbstractExpectation | |
assertEquals , assertEquals , clearActual , hasExpectations , setFailOnVerify , setHasExpectations , shouldCheckImmediately , verify |
public void addActual(Object actualItem)
- Specified by:
- addActual in interface ExpectationCollection
public void addActual(int actualItem)
public void addActual(long actual)
- Specified by:
- addActual in interface ExpectationCollection
public void addActualMany(Enumeration items)
- Specified by:
- addActualMany in interface ExpectationCollection
public void addActualMany(Iterator items)
- Specified by:
- addActualMany in interface ExpectationCollection
public void addActualMany(Object[] items)
- Specified by:
- addActualMany in interface ExpectationCollection
public void addExpected(Object expectedItem)
- Specified by:
- addExpected in interface ExpectationCollection
public void addExpected(int expectedItem)
public void addExpected(long expected)
- Specified by:
- addExpected in interface ExpectationCollection
public void addExpectedMany(Enumeration expectedItems)
- Specified by:
- addExpectedMany in interface ExpectationCollection
public void addExpectedMany(Iterator expectedItems)
- Specified by:
- addExpectedMany in interface ExpectationCollection
public void addExpectedMany(Object[] expectedItems)
- Specified by:
- addExpectedMany in interface ExpectationCollection
protected void checkImmediateValues(Object actualItem)
protected void clearExpectation()
protected Collection getActualCollection()
protected Collection getExpectedCollection()
public void setExpectNothing()
Tell the object to expect nothing to happen to it, perhaps because the test is exercising the handling of an error. The Expectation will fail if any actual values are set. Note that this is not the same as not setting any expectations, in which case verify() will do nothing.
- Specified by:
- setExpectNothing in interface Expectation
public void verify()
- Specified by:
- verify in interface Verifiable
- Overrides:
- verify in interface AbstractExpectation