com.agical.rmock.core.expectation
Class ExpectationCounterVisitor

java.lang.Object
  extended by com.agical.rmock.core.expectation.ExpectationCounterVisitor
All Implemented Interfaces:
ExpectationVisitor

public class ExpectationCounterVisitor
extends java.lang.Object
implements ExpectationVisitor

Author:
brolund (c) 2005 Agical AB

Constructor Summary
ExpectationCounterVisitor()
           
ExpectationCounterVisitor(int maxCount)
           
 
Method Summary
 void enteredSection(Section section)
          Called when a section is entered
 void exitedSection()
          called when the current section has exited.
 int getCount()
           
 boolean visit(Expectation expectation, boolean available)
          Visits expectations
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExpectationCounterVisitor

public ExpectationCounterVisitor()

ExpectationCounterVisitor

public ExpectationCounterVisitor(int maxCount)
Method Detail

visit

public boolean visit(Expectation expectation,
                     boolean available)
Description copied from interface: ExpectationVisitor
Visits expectations

Specified by:
visit in interface ExpectationVisitor
Parameters:
expectation - the expectation to visit
available - true if this expectation is considered to be available by the surrounding section.
Returns:
true if the visitor is still active (wants to visit more expectations)

enteredSection

public void enteredSection(Section section)
Description copied from interface: ExpectationVisitor
Called when a section is entered

Specified by:
enteredSection in interface ExpectationVisitor

exitedSection

public void exitedSection()
Description copied from interface: ExpectationVisitor
called when the current section has exited.

Specified by:
exitedSection in interface ExpectationVisitor

getCount

public int getCount()


Copyright © 2005-2010 Agical AB. All Rights Reserved.