View Javadoc
1 /* Copyright (c) 2000-2003, jMock.org. See bundled LICENSE.txt */ 2 package org.jmock.expectation; 3 4 import java.util.Enumeration; 5 import java.util.Iterator; 6 7 /*** 8 * An <EM>ExpectationCollection</EM> is an expectation that supports multiple values, such as lists 9 * and sets. 10 * <p/> 11 * The addition methods distinguish between adding a single value and unpacking the contents of 12 * a collection. We have to make this distinction so that it is possible to add an array, enumeration, 13 * or iterator as a single expected object, rather than adding its contents. 14 */ 15 public interface ExpectationCollection extends Expectation { 16 17 void addActual(Object actual); 18 19 void addActual(long actual); 20 21 void addActualMany(Object[] actuals); 22 23 void addActualMany(Enumeration actuals); 24 25 void addActualMany(Iterator actuals); 26 27 28 void addExpected(Object expected); 29 30 void addExpected(long expected); 31 32 void addExpectedMany(Object[] expectedItems); 33 34 void addExpectedMany(Enumeration expectedItems); 35 36 void addExpectedMany(Iterator expectedItems); 37 }

This page was automatically generated by Maven