public class ExpectationCounterVisitor extends Object implements ExpectationVisitor
| Constructor and Description |
|---|
ExpectationCounterVisitor() |
ExpectationCounterVisitor(int maxCount) |
| Modifier and Type | Method and Description |
|---|---|
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
|
public ExpectationCounterVisitor()
public ExpectationCounterVisitor(int maxCount)
public boolean visit(Expectation expectation, boolean available)
ExpectationVisitorvisit in interface ExpectationVisitorexpectation - the expectation to visitavailable - true if this expectation is considered to be available by the surrounding
section.public void enteredSection(Section section)
ExpectationVisitorenteredSection in interface ExpectationVisitorpublic void exitedSection()
ExpectationVisitorexitedSection in interface ExpectationVisitorpublic int getCount()
Copyright © 2005-2013 Agical AB. All Rights Reserved.