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