Package org.citrusframework.container
Class Conditional
java.lang.Object
org.citrusframework.actions.AbstractTestAction
org.citrusframework.container.AbstractActionContainer
org.citrusframework.container.Conditional
- All Implemented Interfaces:
org.citrusframework.common.Described,org.citrusframework.common.Named,org.citrusframework.Completable,org.citrusframework.container.TestActionContainer,org.citrusframework.TestAction,org.citrusframework.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(org.citrusframework.context.TestContext context) Subclasses may add custom execution logic here.Gets the condition expression.org.citrusframework.container.ConditionExpressionGets the condition expression.booleanisDone(org.citrusframework.context.TestContext context) Methods inherited from class org.citrusframework.container.AbstractActionContainer
addTestAction, addTestAction, addTestActions, addTestActions, executeAction, getActionCount, getActionIndex, getActions, getActiveAction, getExecutedActions, getNumberOfExecutedActions, 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
public void doExecute(org.citrusframework.context.TestContext context) Description copied from class:AbstractTestActionSubclasses may add custom execution logic here.- Specified by:
doExecutein classAbstractTestAction
-
isDone
public boolean isDone(org.citrusframework.context.TestContext context) - Specified by:
isDonein interfaceorg.citrusframework.Completable- Overrides:
isDonein classAbstractActionContainer
-
getCondition
Gets the condition expression.- Returns:
- the expression
-
getConditionExpression
public org.citrusframework.container.ConditionExpression getConditionExpression()Gets the condition expression.- Returns:
- the conditionExpression
-