public abstract class AbstractExpectationCollection extends AbstractExpectation implements ExpectationCollection
Constructor and Description |
---|
AbstractExpectationCollection(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
void |
addActual(int actualItem) |
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(java.lang.Object expectedItem) |
void |
addExpectedMany(java.util.Enumeration expectedItems) |
void |
addExpectedMany(java.util.Iterator expectedItems) |
void |
addExpectedMany(java.lang.Object[] expectedItems) |
void |
clearActual() |
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.
|
hasExpectations, setFailOnVerify
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
hasExpectations, setFailOnVerify
public AbstractExpectationCollection(java.lang.String name)
public void addActual(java.lang.Object actualItem)
addActual
in interface ExpectationCollection
public void addActual(int actualItem)
public void addActualMany(java.lang.Object[] items)
addActualMany
in interface ExpectationCollection
public void addActualMany(java.util.Enumeration items)
addActualMany
in interface ExpectationCollection
public void addActualMany(java.util.Iterator items)
addActualMany
in interface ExpectationCollection
public void addExpected(int expectedItem)
public void addExpected(java.lang.Object expectedItem)
addExpected
in interface ExpectationCollection
public void addExpectedMany(java.lang.Object[] expectedItems)
addExpectedMany
in interface ExpectationCollection
public void addExpectedMany(java.util.Enumeration expectedItems)
addExpectedMany
in interface ExpectationCollection
public void addExpectedMany(java.util.Iterator expectedItems)
addExpectedMany
in interface ExpectationCollection
public void clearActual()
clearActual
in class AbstractExpectation
public void setExpectNothing()
Expectation
setExpectNothing
in interface Expectation
public void verify()
Verifiable
verify
in interface Verifiable
verify
in class AbstractExpectation
Copyright © 2002 Mock Objects. All Rights Reserved.