Package org.concordion.internal
Class SpecificationToSpecificationByExampleAdaptor
java.lang.Object
org.concordion.internal.SpecificationToSpecificationByExampleAdaptor
- All Implemented Interfaces:
Specification
,SpecificationByExample
public class SpecificationToSpecificationByExampleAdaptor
extends Object
implements SpecificationByExample
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
finish()
Called once all examples have been executed so the spec can do things like "save HTML results to file".Gets the description of the exported specification.Gets all the examples in the specification.boolean
Returns whether the specification contains example nodes.void
process
(Evaluator evaluator, ResultRecorder resultRecorder, Fixture fixture) void
processExample
(Evaluator evaluator, String example, ResultRecorder resultRecorder, Fixture fixture) Processes a single example.
-
Constructor Details
-
SpecificationToSpecificationByExampleAdaptor
-
-
Method Details
-
finish
public void finish()Description copied from interface:SpecificationByExample
Called once all examples have been executed so the spec can do things like "save HTML results to file".- Specified by:
finish
in interfaceSpecificationByExample
-
process
- Specified by:
process
in interfaceSpecification
-
processExample
public void processExample(Evaluator evaluator, String example, ResultRecorder resultRecorder, Fixture fixture) Description copied from interface:SpecificationByExample
Processes a single example.- Specified by:
processExample
in interfaceSpecificationByExample
- Parameters:
evaluator
- evaluatorexample
- name of the exampleresultRecorder
- result recorderfixture
- the example's fixture
-
getExampleNames
Description copied from interface:SpecificationByExample
Gets all the examples in the specification.- Specified by:
getExampleNames
in interfaceSpecificationByExample
- Returns:
- names of the examples
-
hasExampleCommandNodes
public boolean hasExampleCommandNodes()Description copied from interface:SpecificationByExample
Returns whether the specification contains example nodes.- Specified by:
hasExampleCommandNodes
in interfaceSpecificationByExample
- Returns:
- true if specification has one or more nodes with an example command on
-
getDescription
Description copied from interface:Specification
Gets the description of the exported specification.- Specified by:
getDescription
in interfaceSpecification
- Returns:
- specification description
-