Package org.concordion.api
Class AbstractCommand
java.lang.Object
org.concordion.api.AbstractCommand
- All Implemented Interfaces:
Command
- Direct Known Subclasses:
AssertEqualsCommand
,BooleanCommand
,EchoCommand
,ExampleCommand
,ExecuteCommand
,RunCommand
,SetCommand
,SpecificationCommand
,VerifyRowsCommand
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
execute
(CommandCall commandCall, Evaluator evaluator, ResultRecorder resultRecorder, Fixture fixture) void
modifyCommandCallTree
(CommandCall element, List<ExampleCommandCall> examples, List<CommandCall> beforeExamples) Used to modify the command call tree post parsing and before execution.void
setUp
(CommandCall commandCall, Evaluator evaluator, ResultRecorder resultRecorder, Fixture fixture) void
verify
(CommandCall commandCall, Evaluator evaluator, ResultRecorder resultRecorder, Fixture fixture)
-
Constructor Details
-
AbstractCommand
public AbstractCommand()
-
-
Method Details
-
execute
public void execute(CommandCall commandCall, Evaluator evaluator, ResultRecorder resultRecorder, Fixture fixture) -
setUp
public void setUp(CommandCall commandCall, Evaluator evaluator, ResultRecorder resultRecorder, Fixture fixture) -
verify
public void verify(CommandCall commandCall, Evaluator evaluator, ResultRecorder resultRecorder, Fixture fixture) -
modifyCommandCallTree
public void modifyCommandCallTree(CommandCall element, List<ExampleCommandCall> examples, List<CommandCall> beforeExamples) Description copied from interface:Command
Used to modify the command call tree post parsing and before execution. Some things that might be done are: * Remove the example command from the parent object and put it in the examples list (or before examples) * Add new commands to examples or before examples * Modify the tree to put table or list execute commands on the right children elements.- Specified by:
modifyCommandCallTree
in interfaceCommand
- Parameters:
element
- the command call element to modifyexamples
- a list of examplesbeforeExamples
- a list of "before" examples
-