Class XpathMessageValidationContext
java.lang.Object
org.citrusframework.validation.context.DefaultValidationContext
org.citrusframework.validation.xml.XmlMessageValidationContext
org.citrusframework.validation.xml.XpathMessageValidationContext
- All Implemented Interfaces:
SchemaValidationContext,ValidationContext
Specialised Xml validation context adds XPath expression evaluation.
- Since:
- 2.3
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classFluent builder.Nested classes/interfaces inherited from class org.citrusframework.validation.xml.XmlMessageValidationContext
XmlMessageValidationContext.XmlValidationContextBuilder<T extends XmlMessageValidationContext,S extends XmlMessageValidationContext.XmlValidationContextBuilder<T, S>> -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.Constructor using fluent builder. -
Method Summary
Modifier and TypeMethodDescriptionGet the control message elements that have to be present in the received message.static booleanisXpathExpression(String pathExpression) Check whether given path expression is a JSONPath expression.Methods inherited from class org.citrusframework.validation.xml.XmlMessageValidationContext
getControlNamespaces, getIgnoreExpressions, getNamespaces, getSchema, getSchemaRepository, isSchemaValidationEnabled
-
Constructor Details
-
XpathMessageValidationContext
public XpathMessageValidationContext()Default constructor. -
XpathMessageValidationContext
Constructor using fluent builder.- Parameters:
builder-
-
-
Method Details
-
getXpathExpressions
Get the control message elements that have to be present in the received message. Message element values are compared as well.- Returns:
- the xPathExpressions
-
isXpathExpression
Check whether given path expression is a JSONPath expression.- Parameters:
pathExpression-- Returns:
-