Package org.concordion.internal
Class XMLSpecification
java.lang.Object
org.concordion.internal.XMLSpecification
- All Implemented Interfaces:
Specification
,SpecificationByExample
-
Field Summary
-
Constructor Summary
ConstructorDescriptionXMLSpecification
(CommandCall rootCommandNode, List<ExampleCommandCall> examples, List<CommandCall> beforeExamples) -
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.void
processNode
(CommandCall node, Evaluator evaluator, ResultRecorder resultRecorder, Fixture fixture)
-
Field Details
-
OUTER_EXAMPLE_NAME
- See Also:
-
OUTER_EXAMPLE_SUFFIX
- See Also:
-
-
Constructor Details
-
XMLSpecification
public XMLSpecification(CommandCall rootCommandNode, List<ExampleCommandCall> examples, List<CommandCall> beforeExamples)
-
-
Method Details
-
processNode
public void processNode(CommandCall node, Evaluator evaluator, ResultRecorder resultRecorder, Fixture fixture) -
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
-
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
-
getExampleNames
Description copied from interface:SpecificationByExample
Gets all the examples in the specification.- Specified by:
getExampleNames
in interfaceSpecificationByExample
- Returns:
- names of the examples
-
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
-