Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.mockobjects
Class ExpectationSet  view ExpectationSet download ExpectationSet.java

java.lang.Object
  extended bycom.mockobjects.AbstractExpectation
      extended bycom.mockobjects.AbstractExpectationCollection
          extended bycom.mockobjects.ExpectationSet
All Implemented Interfaces:
Expectation, ExpectationCollection, Verifiable

public class ExpectationSet
extends AbstractExpectationCollection


Field Summary
private  java.util.HashSet myActualItems
           
private  java.util.HashSet myExpectedItems
           
 
Fields inherited from class com.mockobjects.AbstractExpectation
myFailureModeIsImmediate, myName
 
Constructor Summary
ExpectationSet(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 com.mockobjects.AbstractExpectationCollection
addActual, addActual, addActualMany, addActualMany, addActualMany, addExpected, addExpected, addExpectedMany, addExpectedMany, addExpectedMany, clearActual, clearExpectation, setExpectNothing, verify
 
Methods inherited from class com.mockobjects.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 com.mockobjects.Expectation
hasExpectations, setFailOnVerify
 

Field Detail

myExpectedItems

private java.util.HashSet myExpectedItems

myActualItems

private java.util.HashSet myActualItems
Constructor Detail

ExpectationSet

public ExpectationSet(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