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

public abstract class AbstractCommand extends Object implements Command
  • Constructor Details

    • AbstractCommand

      public AbstractCommand()
  • Method Details

    • execute

      public void execute(CommandCall commandCall, Evaluator evaluator, ResultRecorder resultRecorder, Fixture fixture)
      Specified by:
      execute in interface Command
    • setUp

      public void setUp(CommandCall commandCall, Evaluator evaluator, ResultRecorder resultRecorder, Fixture fixture)
      Specified by:
      setUp in interface Command
    • verify

      public void verify(CommandCall commandCall, Evaluator evaluator, ResultRecorder resultRecorder, Fixture fixture)
      Specified by:
      verify in interface Command
    • 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 interface Command
      Parameters:
      element - the command call element to modify
      examples - a list of examples
      beforeExamples - a list of "before" examples