public abstract class AbstractExpectationCollection extends AbstractExpectation implements ExpectationCollection
myFailureModeIsImmediate, myName| Constructor and Description |
|---|
AbstractExpectationCollection(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
addActual(int actualItem) |
void |
addActual(long actual) |
void |
addActual(java.lang.Object actualItem) |
void |
addActualMany(java.util.Enumeration items) |
void |
addActualMany(java.util.Iterator items) |
void |
addActualMany(java.lang.Object[] items) |
void |
addExpected(int expectedItem) |
void |
addExpected(long expected) |
void |
addExpected(java.lang.Object expectedItem) |
void |
addExpectedMany(java.util.Enumeration expectedItems) |
void |
addExpectedMany(java.util.Iterator expectedItems) |
void |
addExpectedMany(java.lang.Object[] expectedItems) |
protected abstract void |
checkImmediateValues(java.lang.Object actualItem) |
void |
clearActual() |
protected void |
clearExpectation() |
protected abstract java.util.Collection |
getActualCollection() |
protected abstract java.util.Collection |
getExpectedCollection() |
void |
setExpectNothing()
Tell the object to expect nothing to happen to it, perhaps because the test is exercising
the handling of an error.
|
void |
verify()
Throw an AssertionFailedException if any expectations have not been met.
|
assertEquals, assertEquals, hasExpectations, setFailOnVerify, setHasExpectations, shouldCheckImmediatelyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithasExpectations, setFailOnVerifypublic AbstractExpectationCollection(java.lang.String name)
public void addActual(java.lang.Object actualItem)
addActual in interface ExpectationCollectionpublic void addActual(int actualItem)
public void addActualMany(java.lang.Object[] items)
addActualMany in interface ExpectationCollectionpublic void addActualMany(java.util.Enumeration items)
addActualMany in interface ExpectationCollectionpublic void addActualMany(java.util.Iterator items)
addActualMany in interface ExpectationCollectionpublic void addExpected(int expectedItem)
public void addExpected(java.lang.Object expectedItem)
addExpected in interface ExpectationCollectionpublic void addExpectedMany(java.lang.Object[] expectedItems)
addExpectedMany in interface ExpectationCollectionpublic void addExpectedMany(java.util.Enumeration expectedItems)
addExpectedMany in interface ExpectationCollectionpublic void addExpectedMany(java.util.Iterator expectedItems)
addExpectedMany in interface ExpectationCollectionprotected abstract void checkImmediateValues(java.lang.Object actualItem)
public void clearActual()
clearActual in class AbstractExpectationprotected void clearExpectation()
protected abstract java.util.Collection getActualCollection()
protected abstract java.util.Collection getExpectedCollection()
public void setExpectNothing()
ExpectationsetExpectNothing in interface Expectationpublic void verify()
Verifiableverify in interface Verifiableverify in class AbstractExpectationpublic void addActual(long actual)
addActual in interface ExpectationCollectionpublic void addExpected(long expected)
addExpected in interface ExpectationCollection