org.jmock.expectation
Class ExpectationList

java.lang.Object
  extended byorg.jmock.expectation.AbstractExpectation
      extended byorg.jmock.expectation.AbstractExpectationCollection
          extended byorg.jmock.expectation.ExpectationList
All Implemented Interfaces:
Expectation, ExpectationCollection, Verifiable

public class ExpectationList
extends AbstractExpectationCollection


Field Summary
protected  java.util.ArrayList myActualItems
           
protected  java.util.ArrayList myExpectedItems
           
 
Fields inherited from class org.jmock.expectation.AbstractExpectation
myFailureModeIsImmediate, myName
 
Constructor Summary
ExpectationList(java.lang.String name)
           
 
Method Summary
protected  void checkImmediateValues(java.lang.Object actualItem)
           
protected  java.util.Collection getActualCollection()
           
protected  java.util.Collection getExpectedCollection()
           
 
Methods inherited from class org.jmock.expectation.AbstractExpectationCollection
addActual, addActual, addActual, addActualMany, addActualMany, addActualMany, addExpected, addExpected, addExpected, addExpectedMany, addExpectedMany, addExpectedMany, clearActual, clearExpectation, setExpectNothing, verify
 
Methods inherited from class org.jmock.expectation.AbstractExpectation
assertEquals, assertEquals, hasExpectations, setFailOnVerify, setHasExpectations, shouldCheckImmediately
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jmock.expectation.Expectation
hasExpectations, setFailOnVerify
 

Field Detail

myExpectedItems

protected java.util.ArrayList myExpectedItems

myActualItems

protected java.util.ArrayList myActualItems
Constructor Detail

ExpectationList

public ExpectationList(java.lang.String name)
Method Detail

checkImmediateValues

protected void checkImmediateValues(java.lang.Object actualItem)
Specified by:
checkImmediateValues in class AbstractExpectationCollection

getActualCollection

protected java.util.Collection getActualCollection()
Specified by:
getActualCollection in class AbstractExpectationCollection

getExpectedCollection

protected java.util.Collection getExpectedCollection()
Specified by:
getExpectedCollection in class AbstractExpectationCollection


Copyright © 2003 jMock.org. All Rights Reserved.