Class PurgeMessageChannelAction

  • All Implemented Interfaces:
    com.consol.citrus.common.Described, com.consol.citrus.common.Named, com.consol.citrus.TestAction, com.consol.citrus.TestActorAware

    public class PurgeMessageChannelAction
    extends com.consol.citrus.actions.AbstractTestAction
    Action purges all messages from a message channel instance. Message channel must be of type QueueChannel. Action receives a list of channel objects or a list of channel names that are resolved dynamically at runtime.
    Author:
    Christoph Deppisch
    • Method Detail

      • doExecute

        public void doExecute​(com.consol.citrus.context.TestContext context)
        Specified by:
        doExecute in class com.consol.citrus.actions.AbstractTestAction
      • resolveChannelName

        protected org.springframework.messaging.MessageChannel resolveChannelName​(String channelName)
        Resolve the channel by name.
        Parameters:
        channelName - the name to resolve
        Returns:
        the MessageChannel object
      • getChannelNames

        public List<String> getChannelNames()
        Gets the channelNames.
        Returns:
        the channelNames the channelNames to get.
      • getChannels

        public List<org.springframework.messaging.MessageChannel> getChannels()
        Gets the channels.
        Returns:
        the channels the channels to get.
      • getMessageSelector

        public org.springframework.integration.core.MessageSelector getMessageSelector()
        Gets the messageSelector.
        Returns:
        the messageSelector the messageSelector to get.
      • getChannelResolver

        public org.springframework.messaging.core.DestinationResolver<org.springframework.messaging.MessageChannel> getChannelResolver()
        Gets the channelResolver.
        Returns:
        the channelResolver the channelResolver to get.