Package com.consol.citrus.validation
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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.consol.citrus.message.MessageProcessor
MessageProcessor.Builder<T extends MessageProcessor,B extends MessageProcessor.Builder<T,B>>
-
-
Field Summary
-
Fields inherited from interface com.consol.citrus.message.MessageProcessor
LOG, RESOURCE_PATH, TYPE_RESOLVER
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidprocess(Message message, TestContext context)Process message with given test context.voidvalidate(Message message, TestContext context)Validate callback method with received message.-
Methods inherited from interface com.consol.citrus.message.MessageProcessor
transform
-
-
-
-
Method Detail
-
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:MessageProcessorProcess message with given test context. Processors can change the message payload and headers.- Specified by:
processin interfaceMessageProcessor- Parameters:
message- the message to process.context- the current test context.
-
-