Package org.citrusframework.container
Class AbstractActionContainer
java.lang.Object
org.citrusframework.actions.AbstractTestAction
org.citrusframework.container.AbstractActionContainer
- All Implemented Interfaces:
Described,Named,Completable,TestActionContainer,TestAction,TestActorAware
- Direct Known Subclasses:
AbstractIteratingActionContainer,AbstractSuiteActionContainer,AbstractTestBoundaryActionContainer,Assert,Async,Catch,Conditional,DefaultTestCase,Parallel,Sequence,Timer
public abstract class AbstractActionContainer
extends AbstractTestAction
implements TestActionContainer, Completable
Abstract base class for all containers holding several embedded test actions.
-
Field Summary
FieldsFields inherited from class org.citrusframework.actions.AbstractTestAction
description -
Constructor Summary
ConstructorsConstructorDescriptionAbstractActionContainer(String name, AbstractTestContainerBuilder<?, ?> builder) -
Method Summary
Modifier and TypeMethodDescriptionaddTestAction(TestAction action) addTestAction(TestActionBuilder<?> action) addTestActions(TestAction... toAdd) addTestActions(TestActionBuilder<?>... toAdd) protected voidexecuteAction(TestAction action, TestContext context) Runs the give action and makes sure to properly set active and executed action state for this container.longintgetActionIndex(TestAction action) getTestAction(int index) booleanisDone(TestContext context) setActions(List<TestAction> actions) voidsetActiveAction(TestAction action) voidsetExecutedAction(TestAction action) Methods inherited from class org.citrusframework.actions.AbstractTestAction
doExecute, execute, getActor, getDescription, getName, isDisabled, setActor, setDescription, setNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.citrusframework.TestAction
execute, getActor, getName, isDisabled
-
Field Details
-
actions
List of nested actions
-
-
Constructor Details
-
AbstractActionContainer
public AbstractActionContainer() -
AbstractActionContainer
-
-
Method Details
-
executeAction
Runs the give action and makes sure to properly set active and executed action state for this container.- Parameters:
action-context-
-
setActions
- Specified by:
setActionsin interfaceTestActionContainer
-
addTestActions
- Specified by:
addTestActionsin interfaceTestActionContainer
-
addTestActions
-
isDone
- Specified by:
isDonein interfaceCompletable
-
getActions
- Specified by:
getActionsin interfaceTestActionContainer
-
getActionCount
public long getActionCount()- Specified by:
getActionCountin interfaceTestActionContainer
-
addTestAction
- Specified by:
addTestActionin interfaceTestActionContainer
-
addTestAction
-
getActionIndex
- Specified by:
getActionIndexin interfaceTestActionContainer
-
getActiveAction
- Specified by:
getActiveActionin interfaceTestActionContainer
-
setActiveAction
- Specified by:
setActiveActionin interfaceTestActionContainer
-
setExecutedAction
- Specified by:
setExecutedActionin interfaceTestActionContainer
-
getExecutedActions
- Specified by:
getExecutedActionsin interfaceTestActionContainer
-
getTestAction
- Specified by:
getTestActionin interfaceTestActionContainer
-