Package org.citrusframework.actions
Class AbstractTestAction
java.lang.Object
org.citrusframework.actions.AbstractTestAction
- All Implemented Interfaces:
Described,Named,TestAction,TestActorAware
- Direct Known Subclasses:
AbstractActionContainer,AbstractAsyncTestAction,AntRunAction,ApplyTestBehaviorAction,CreateVariablesAction,EchoAction,FailAction,InputAction,JavaAction,LoadPropertiesAction,PurgeEndpointAction,ReceiveMessageAction,ReceiveTimeoutAction,SendMessageAction,SleepAction,StartServerAction,StopServerAction,StopTimeAction,StopTimerAction,Template,TraceVariablesAction,TransformAction,Wait
public abstract class AbstractTestAction
extends Object
implements TestAction, Named, Described, TestActorAware
Abstract base class for test actions. Class provides a default name and description.
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractTestAction(String name, AbstractTestActionBuilder<?, ?> builder) -
Method Summary
Modifier and TypeMethodDescriptionabstract voiddoExecute(TestContext context) Subclasses may add custom execution logic here.voidexecute(TestContext context) Do basic logging and delegate execution to subclass.getActor()Gets the actor.getName()booleanisDisabled(TestContext context) Checks if this test action is disabled.Sets the actor.setDescription(String description) void
-
Field Details
-
description
Describing the test action
-
-
Constructor Details
-
AbstractTestAction
protected AbstractTestAction() -
AbstractTestAction
-
-
Method Details
-
execute
Do basic logging and delegate execution to subclass.- Specified by:
executein interfaceTestAction
-
isDisabled
Checks if this test action is disabled. Delegates to test actor defined for this test action by default. Subclasses may add additional disabled logic here.- Specified by:
isDisabledin interfaceTestAction- Parameters:
context- the current test context.- Returns:
-
doExecute
Subclasses may add custom execution logic here. -
getDescription
- Specified by:
getDescriptionin interfaceDescribed
-
setDescription
- Specified by:
setDescriptionin interfaceDescribed
-
getName
- Specified by:
getNamein interfaceTestAction
-
setName
-
getActor
Gets the actor.- Specified by:
getActorin interfaceTestAction- Returns:
- the actor the actor to get.
-
setActor
Sets the actor.- Specified by:
setActorin interfaceTestActorAware- Parameters:
actor- the actor to set
-