Package org.citrusframework.actions
Class PurgeEndpointAction
java.lang.Object
org.citrusframework.actions.AbstractTestAction
org.citrusframework.actions.PurgeEndpointAction
- All Implemented Interfaces:
Described,Named,TestAction,TestActorAware
Action purges all messages from a message endpoint. Action receives
a list of endpoint objects or a list of endpoint names that are resolved dynamically at runtime.
- Since:
- 2.4
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class org.citrusframework.actions.AbstractTestAction
description -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoiddoExecute(TestContext context) Subclasses may add custom execution logic here.Gets the endpointNames.Gets the endpoints.Gets the messageSelector.Gets the messageSelector as map.longGets the receiveTimeout.Gets the bean reference resolver for endpoint name resolving.longGets the sleepTime.protected EndpointresolveEndpointName(String endpointName) Resolve the endpoint by name.Methods inherited from class org.citrusframework.actions.AbstractTestAction
execute, getActor, getDescription, getName, isDisabled, setActor, setDescription, setName
-
Constructor Details
-
PurgeEndpointAction
Default constructor.
-
-
Method Details
-
doExecute
Description copied from class:AbstractTestActionSubclasses may add custom execution logic here.- Specified by:
doExecutein classAbstractTestAction
-
resolveEndpointName
Resolve the endpoint by name.- Parameters:
endpointName- the name to resolve- Returns:
- the Endpoint object
-
getReferenceResolver
Gets the bean reference resolver for endpoint name resolving.- Returns:
-
getEndpointNames
Gets the endpointNames.- Returns:
- the endpointNames the endpointNames to get.
-
getEndpoints
Gets the endpoints.- Returns:
- the endpoints the endpoints to get.
-
getMessageSelectorMap
Gets the messageSelector as map.- Returns:
- the messageSelectorMap
-
getMessageSelector
Gets the messageSelector.- Returns:
- the messageSelector
-
getReceiveTimeout
public long getReceiveTimeout()Gets the receiveTimeout.- Returns:
- the receiveTimeout
-
getSleepTime
public long getSleepTime()Gets the sleepTime.- Returns:
- the sleepTime the sleepTime to get.
-