Package org.citrusframework.validation
Class AbstractValidationProcessor<T>
java.lang.Object
org.citrusframework.validation.AbstractValidationProcessor<T>
- All Implemented Interfaces:
org.citrusframework.message.MessageProcessor,org.citrusframework.message.MessageTransformer,org.citrusframework.spi.ReferenceResolverAware,org.citrusframework.validation.GenericValidationProcessor<T>,org.citrusframework.validation.ValidationProcessor
public abstract class AbstractValidationProcessor<T>
extends Object
implements org.citrusframework.validation.ValidationProcessor, org.citrusframework.validation.GenericValidationProcessor<T>, org.citrusframework.spi.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
org.citrusframework.message.MessageProcessor.Builder<T extends org.citrusframework.message.MessageProcessor,B extends org.citrusframework.message.MessageProcessor.Builder<T, B>> -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.citrusframework.spi.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(org.citrusframework.spi.ReferenceResolver referenceResolver) voidvalidate(org.citrusframework.message.Message message, org.citrusframework.context.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
protected org.citrusframework.spi.ReferenceResolver referenceResolverBean reference resolver injected before validation callback is called
-
-
Constructor Details
-
AbstractValidationProcessor
public AbstractValidationProcessor()
-
-
Method Details
-
validate
public void validate(org.citrusframework.message.Message message, org.citrusframework.context.TestContext context) - Specified by:
validatein interfaceorg.citrusframework.validation.ValidationProcessor
-
setReferenceResolver
public void setReferenceResolver(org.citrusframework.spi.ReferenceResolver referenceResolver) - Specified by:
setReferenceResolverin interfaceorg.citrusframework.spi.ReferenceResolverAware
-