com.agical.rmock.core
Interface Section

All Superinterfaces:
Visitable
All Known Implementing Classes:
AnyOrderSection, OrderedSection, OverridableSection, StackedSection

public interface Section
extends Visitable

A section groups expectations so that they are easier to identify in error messages. Sections can also introduce behaviour such as expecting all expectations in the section to be ordered.

(c) 2005 Agical AB

Author:
joakim.ohlrogge

Method Summary
 void add(Visitable visitable)
          Adds an expectaion or subsection to this section
 String getDescription()
           
 String getType()
           
 
Methods inherited from interface com.agical.rmock.core.Visitable
accept, canMatch, isSatisfied
 

Method Detail

add

void add(Visitable visitable)
Adds an expectaion or subsection to this section

Parameters:
visitable - The visitable to add

getDescription

String getDescription()
Returns:
a description of this section

getType

String getType()
Returns:
the type of section (ordered, unordered etc)


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