public class DocumentExpectationsVisitor extends Object implements ExpectationVisitor
Constructor and Description |
---|
DocumentExpectationsVisitor(String indentString) |
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.
|
Expectation[] |
getMatchedExpectations() |
String |
getMessage() |
boolean |
visit(Expectation expectation,
boolean available)
Visits expectations
|
public DocumentExpectationsVisitor(String indentString)
public boolean visit(Expectation expectation, boolean available)
ExpectationVisitor
visit
in interface ExpectationVisitor
expectation
- the expectation to visitavailable
- true if this expectation is considered to be available by the surrounding
section.public Expectation[] getMatchedExpectations()
public String getMessage()
public void enteredSection(Section section)
ExpectationVisitor
enteredSection
in interface ExpectationVisitor
public void exitedSection()
ExpectationVisitor
exitedSection
in interface ExpectationVisitor
Copyright © 2005-2013 Agical AB. All Rights Reserved.