org.jmock.expectation
Interface ExpectationCollection
- All Superinterfaces:
- Expectation, Verifiable
- All Known Implementing Classes:
- AbstractExpectationCollection
- public interface ExpectationCollection
- extends Expectation
An ExpectationCollection is an expectation that supports multiple values, such as lists
and sets.
The addition methods distinguish between adding a single value and unpacking the contents of
a collection. We have to make this distinction so that it is possible to add an array, enumeration,
or iterator as a single expected object, rather than adding its contents.
addActual
public void addActual(Object actual)
addActual
public void addActual(long actual)
addActualMany
public void addActualMany(Object[] actuals)
addActualMany
public void addActualMany(Enumeration actuals)
addActualMany
public void addActualMany(Iterator actuals)
addExpected
public void addExpected(Object expected)
addExpected
public void addExpected(long expected)
addExpectedMany
public void addExpectedMany(Object[] expectedItems)
addExpectedMany
public void addExpectedMany(Enumeration expectedItems)
addExpectedMany
public void addExpectedMany(Iterator expectedItems)