Interface ValidationProcessor

All Superinterfaces:
MessageProcessor, MessageTransformer
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ValidationProcessor extends MessageProcessor
Callback called by receive message action for validation purpose. Implementations to validate the received message with Java code.
Author:
Christoph Deppisch
  • Method Details

    • validate

      void validate(Message message, TestContext context)
      Validate callback method with received message.
      Parameters:
      message -
      context -
    • process

      default void process(Message message, TestContext context)
      Description copied from interface: MessageProcessor
      Process message with given test context. Processors can change the message payload and headers.
      Specified by:
      process in interface MessageProcessor
      Parameters:
      message - the message to process.
      context - the current test context.