Package org.citrusframework.actions
Class PurgeEndpointAction
java.lang.Object
org.citrusframework.actions.AbstractTestAction
org.citrusframework.actions.PurgeEndpointAction
- All Implemented Interfaces:
org.citrusframework.common.Described,org.citrusframework.common.Named,org.citrusframework.TestAction,org.citrusframework.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(org.citrusframework.context.TestContext context) Subclasses may add custom execution logic here.Gets the endpointNames.List<org.citrusframework.endpoint.Endpoint>Gets the endpoints.Gets the messageSelector.Gets the messageSelector as map.longGets the receiveTimeout.org.citrusframework.spi.ReferenceResolverGets the bean reference resolver for endpoint name resolving.longGets the sleepTime.protected org.citrusframework.endpoint.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
public void doExecute(org.citrusframework.context.TestContext context) 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
public org.citrusframework.spi.ReferenceResolver 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.
-