Package com.mockobjects
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.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
addActualMany
(Object[] actuals) void
addActualMany
(Enumeration actuals) void
addActualMany
(Iterator actuals) void
addExpected
(Object expected) void
addExpectedMany
(Object[] expectedItems) void
addExpectedMany
(Enumeration expectedItems) void
addExpectedMany
(Iterator expectedItems) Methods inherited from interface com.mockobjects.Expectation
hasExpectations, setExpectNothing, setFailOnVerify
Methods inherited from interface com.mockobjects.Verifiable
verify
-
Method Details
-
addActual
-
addActualMany
-
addActualMany
-
addActualMany
-
addExpected
-
addExpectedMany
-
addExpectedMany
-
addExpectedMany
-