Class PurgeEndpointAction

  • All Implemented Interfaces:
    com.consol.citrus.common.Described, com.consol.citrus.common.Named, com.consol.citrus.TestAction, com.consol.citrus.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
    Author:
    Christoph Deppisch
    • Method Detail

      • doExecute

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

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

        public com.consol.citrus.spi.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<com.consol.citrus.endpoint.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.