com.agical.rmock.core.expectation
Class ExpectationCounterVisitor
java.lang.Object
com.agical.rmock.core.expectation.ExpectationCounterVisitor
- All Implemented Interfaces:
- ExpectationVisitor
public class ExpectationCounterVisitor
- extends Object
- implements ExpectationVisitor
- Author:
- brolund
(c) 2005 Agical AB
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExpectationCounterVisitor
public ExpectationCounterVisitor()
ExpectationCounterVisitor
public ExpectationCounterVisitor(int maxCount)
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 visitavailable
- 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-2011 Agical AB. All Rights Reserved.