Class PurgeEndpointAction

java.lang.Object
org.citrusframework.actions.AbstractTestAction
org.citrusframework.actions.PurgeEndpointAction
All Implemented Interfaces:
Described, Named, TestAction, TestActorAware

public class PurgeEndpointAction extends AbstractTestAction
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
  • Constructor Details

  • Method Details

    • doExecute

      public void doExecute(TestContext context)
      Description copied from class: AbstractTestAction
      Subclasses may add custom execution logic here.
      Specified by:
      doExecute in class AbstractTestAction
    • resolveEndpointName

      protected Endpoint resolveEndpointName(String endpointName)
      Resolve the endpoint by name.
      Parameters:
      endpointName - the name to resolve
      Returns:
      the Endpoint object
    • getReferenceResolver

      public ReferenceResolver getReferenceResolver()
      Gets the bean reference resolver for endpoint name resolving.
      Returns:
    • getEndpointNames

      public List<String> getEndpointNames()
      Gets the endpointNames.
      Returns:
      the endpointNames the endpointNames to get.
    • getEndpoints

      public List<Endpoint> getEndpoints()
      Gets the endpoints.
      Returns:
      the endpoints the endpoints to get.
    • getMessageSelectorMap

      public Map<String,Object> getMessageSelectorMap()
      Gets the messageSelector as map.
      Returns:
      the messageSelectorMap
    • getMessageSelector

      public String 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.