Package org.jmock.expectation
Class ExpectationSet
java.lang.Object
org.jmock.expectation.AbstractExpectation
org.jmock.expectation.AbstractExpectationCollection
org.jmock.expectation.ExpectationSet
- All Implemented Interfaces:
Verifiable,Expectation,ExpectationCollection
-
Field Summary
Fields inherited from class org.jmock.expectation.AbstractExpectation
myFailureModeIsImmediate, myName -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckImmediateValues(Object actualItem) protected Collectionprotected Collectionvoidverify()Throw an AssertionFailedException if any expectations have not been met.Methods inherited from class org.jmock.expectation.AbstractExpectationCollection
addActual, addActual, addActual, addActualMany, addActualMany, addActualMany, addExpected, addExpected, addExpected, addExpectedMany, addExpectedMany, addExpectedMany, clearActual, clearExpectation, setExpectNothingMethods inherited from class org.jmock.expectation.AbstractExpectation
assertEquals, assertEquals, hasExpectations, setFailOnVerify, setHasExpectations, shouldCheckImmediatelyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jmock.expectation.Expectation
hasExpectations, setFailOnVerify
-
Constructor Details
-
ExpectationSet
-
-
Method Details
-
checkImmediateValues
- Specified by:
checkImmediateValuesin classAbstractExpectationCollection
-
getActualCollection
- Specified by:
getActualCollectionin classAbstractExpectationCollection
-
getExpectedCollection
- Specified by:
getExpectedCollectionin classAbstractExpectationCollection
-
verify
public void verify()Description copied from interface:VerifiableThrow an AssertionFailedException if any expectations have not been met. Implementations of this method must be idempotent: jMock can call this method more than once when verifying expectations at the end of a test.- Specified by:
verifyin interfaceVerifiable- Overrides:
verifyin classAbstractExpectationCollection
-