Package org.concordion.api
Interface Command
- All Known Implementing Classes:
AbstractCommand
,AbstractCommandDecorator
,AssertEqualsCommand
,AssertFalseCommand
,AssertTrueCommand
,BooleanCommand
,EchoCommand
,ExampleCommand
,ExecuteCommand
,LocalTextDecorator
,RunCommand
,SetCommand
,SpecificationCommand
,ThrowableCatchingDecorator
,VerifyRowsCommand
public interface Command
-
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)
-
Method Details
-
setUp
void setUp(CommandCall commandCall, Evaluator evaluator, ResultRecorder resultRecorder, Fixture fixture) -
execute
void execute(CommandCall commandCall, Evaluator evaluator, ResultRecorder resultRecorder, Fixture fixture) -
verify
void verify(CommandCall commandCall, Evaluator evaluator, ResultRecorder resultRecorder, Fixture fixture) -
modifyCommandCallTree
void modifyCommandCallTree(CommandCall element, List<ExampleCommandCall> examples, List<CommandCall> beforeExamples) 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.- Parameters:
element
- the command call element to modifyexamples
- a list of examplesbeforeExamples
- a list of "before" examples
-