Package org.citrusframework.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.
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 org.citrusframework.message.MessageProcessor
MessageProcessor.Builder<T extends MessageProcessor,B extends MessageProcessor.Builder<T, B>> -
Field Summary
Fields inherited from interface org.citrusframework.message.MessageProcessor
logger, RESOURCE_PATH, TYPE_RESOLVER -
Method Summary
Modifier and TypeMethodDescriptiondefault 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 org.citrusframework.message.MessageProcessor
transform
-
Method Details
-
validate
Validate callback method with received message.- Parameters:
message-context-
-
process
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.
-