Package org.jmock.expectation
Interface ExpectationCollection
- All Superinterfaces:
Expectation,Verifiable
- All Known Implementing Classes:
AbstractExpectationCollection,ExpectationList,ExpectationSet
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.
- Since:
- 1.0
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddActual(long actual) voidvoidaddActualMany(Object[] actuals) voidaddActualMany(Enumeration actuals) voidaddActualMany(Iterator actuals) voidaddExpected(long expected) voidaddExpected(Object expected) voidaddExpectedMany(Object[] expectedItems) voidaddExpectedMany(Enumeration expectedItems) voidaddExpectedMany(Iterator expectedItems) Methods inherited from interface org.jmock.expectation.Expectation
hasExpectations, setExpectNothing, setFailOnVerifyMethods inherited from interface org.jmock.core.Verifiable
verify
-
Method Details
-
addActual
-
addActual
void addActual(long actual) -
addActualMany
-
addActualMany
-
addActualMany
-
addExpected
-
addExpected
void addExpected(long expected) -
addExpectedMany
-
addExpectedMany
-
addExpectedMany
-