com.agical.rmock.core.describe.impl
Class DocumentExpectationsVisitor

java.lang.Object
  extended by com.agical.rmock.core.describe.impl.DocumentExpectationsVisitor
All Implemented Interfaces:
ExpectationVisitor

public class DocumentExpectationsVisitor
extends Object
implements ExpectationVisitor

Creates a message from all visited expectations. (c) Agical AB 2005

Author:
joakim.ohlrogge

Constructor Summary
DocumentExpectationsVisitor(String indentString)
           
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentExpectationsVisitor

public DocumentExpectationsVisitor(String indentString)
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)

getMatchedExpectations

public Expectation[] getMatchedExpectations()

getMessage

public String getMessage()

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


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