Package org.citrusframework.container
Class Conditional
java.lang.Object
org.citrusframework.actions.AbstractTestAction
org.citrusframework.container.AbstractActionContainer
org.citrusframework.container.Conditional
- All Implemented Interfaces:
Described,Named,Completable,TestActionContainer,TestAction,TestActorAware
Class executes nested test actions if condition expression evaluates to true.
- Since:
- 1.2
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class org.citrusframework.container.AbstractActionContainer
actionsFields inherited from class org.citrusframework.actions.AbstractTestAction
description -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddoExecute(TestContext context) Subclasses may add custom execution logic here.Gets the condition expression.Gets the condition expression.booleanisDone(TestContext context) Methods inherited from class org.citrusframework.container.AbstractActionContainer
addTestAction, addTestAction, addTestActions, addTestActions, executeAction, getActionCount, getActionIndex, getActions, getActiveAction, getExecutedActions, getTestAction, setActions, setActiveAction, setExecutedActionMethods inherited from class org.citrusframework.actions.AbstractTestAction
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
-
Constructor Details
-
Conditional
Default constructor.
-
-
Method Details
-
doExecute
Description copied from class:AbstractTestActionSubclasses may add custom execution logic here.- Specified by:
doExecutein classAbstractTestAction
-
isDone
- Specified by:
isDonein interfaceCompletable- Overrides:
isDonein classAbstractActionContainer
-
getCondition
Gets the condition expression.- Returns:
- the expression
-
getConditionExpression
Gets the condition expression.- Returns:
- the conditionExpression
-