Class AbstractActionContainer

java.lang.Object
org.citrusframework.actions.AbstractTestAction
org.citrusframework.container.AbstractActionContainer
All Implemented Interfaces:
org.citrusframework.common.Described, org.citrusframework.common.Named, org.citrusframework.Completable, org.citrusframework.container.TestActionContainer, org.citrusframework.TestAction, org.citrusframework.TestActorAware
Direct Known Subclasses:
AbstractIteratingActionContainer, AbstractSuiteActionContainer, AbstractTestBoundaryActionContainer, Assert, Async, Catch, Conditional, DefaultTestCase, Parallel, Sequence, Timer

public abstract class AbstractActionContainer extends AbstractTestAction implements org.citrusframework.container.TestActionContainer, org.citrusframework.Completable
Abstract base class for all containers holding several embedded test actions.
  • Field Details

    • actions

      protected List<org.citrusframework.TestActionBuilder<?>> actions
      List of nested actions
  • Constructor Details

  • Method Details

    • executeAction

      protected void executeAction(org.citrusframework.TestAction action, org.citrusframework.context.TestContext context)
      Runs the give action and makes sure to properly set active and executed action state for this container.
      Parameters:
      action -
      context -
    • setActions

      public AbstractActionContainer setActions(List<org.citrusframework.TestAction> actions)
      Specified by:
      setActions in interface org.citrusframework.container.TestActionContainer
    • addTestActions

      public AbstractActionContainer addTestActions(org.citrusframework.TestAction... toAdd)
      Specified by:
      addTestActions in interface org.citrusframework.container.TestActionContainer
    • addTestActions

      public AbstractActionContainer addTestActions(org.citrusframework.TestActionBuilder<?>... toAdd)
    • isDone

      public boolean isDone(org.citrusframework.context.TestContext context)
      Specified by:
      isDone in interface org.citrusframework.Completable
    • getActions

      public List<org.citrusframework.TestAction> getActions()
      Specified by:
      getActions in interface org.citrusframework.container.TestActionContainer
    • getActionCount

      public long getActionCount()
      Specified by:
      getActionCount in interface org.citrusframework.container.TestActionContainer
    • addTestAction

      public AbstractActionContainer addTestAction(org.citrusframework.TestAction action)
      Specified by:
      addTestAction in interface org.citrusframework.container.TestActionContainer
    • addTestAction

      public AbstractActionContainer addTestAction(org.citrusframework.TestActionBuilder<?> action)
    • getActionIndex

      public int getActionIndex(org.citrusframework.TestAction action)
      Specified by:
      getActionIndex in interface org.citrusframework.container.TestActionContainer
    • getActiveAction

      public org.citrusframework.TestAction getActiveAction()
      Specified by:
      getActiveAction in interface org.citrusframework.container.TestActionContainer
    • setActiveAction

      public void setActiveAction(org.citrusframework.TestAction action)
      Specified by:
      setActiveAction in interface org.citrusframework.container.TestActionContainer
    • setExecutedAction

      public void setExecutedAction(org.citrusframework.TestAction action)
      Specified by:
      setExecutedAction in interface org.citrusframework.container.TestActionContainer
    • getExecutedActions

      public List<org.citrusframework.TestAction> getExecutedActions()
      Specified by:
      getExecutedActions in interface org.citrusframework.container.TestActionContainer
    • getNumberOfExecutedActions

      public int getNumberOfExecutedActions()
      Specified by:
      getNumberOfExecutedActions in interface org.citrusframework.container.TestActionContainer
    • getTestAction

      public org.citrusframework.TestAction getTestAction(int index)
      Specified by:
      getTestAction in interface org.citrusframework.container.TestActionContainer