com.mockobjects
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(java.lang.Object actual)
addActualMany
public void addActualMany(java.lang.Object[] actuals)
addActualMany
public void addActualMany(java.util.Enumeration actuals)
addActualMany
public void addActualMany(java.util.Iterator actuals)
addExpected
public void addExpected(java.lang.Object expected)
addExpectedMany
public void addExpectedMany(java.lang.Object[] expectedItems)
addExpectedMany
public void addExpectedMany(java.util.Enumeration expectedItems)
addExpectedMany
public void addExpectedMany(java.util.Iterator expectedItems)
Copyright © 2002 Mock Objects. All Rights Reserved.