Package org.citrusframework.validation
Class AbstractValidationProcessor<T>
java.lang.Object
org.citrusframework.validation.AbstractValidationProcessor<T>
- All Implemented Interfaces:
MessageProcessor,MessageTransformer,ReferenceResolverAware,GenericValidationProcessor<T>,ValidationProcessor
public abstract class AbstractValidationProcessor<T>
extends Object
implements ValidationProcessor, GenericValidationProcessor<T>, ReferenceResolverAware
Validation callback automatically extracts message payload and headers so we work with
Java code for validation.
-
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
FieldsModifier and TypeFieldDescriptionprotected ReferenceResolverBean reference resolver injected before validation callback is calledFields inherited from interface org.citrusframework.message.MessageProcessor
logger, RESOURCE_PATH, TYPE_RESOLVER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetReferenceResolver(ReferenceResolver referenceResolver) voidvalidate(Message message, TestContext context) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.citrusframework.validation.GenericValidationProcessor
validateMethods inherited from interface org.citrusframework.message.MessageProcessor
transformMethods inherited from interface org.citrusframework.validation.ValidationProcessor
process
-
Field Details
-
referenceResolver
Bean reference resolver injected before validation callback is called
-
-
Constructor Details
-
AbstractValidationProcessor
public AbstractValidationProcessor()
-
-
Method Details
-
validate
- Specified by:
validatein interfaceValidationProcessor
-
setReferenceResolver
- Specified by:
setReferenceResolverin interfaceReferenceResolverAware
-