Class JsonPathMessageValidationContext
java.lang.Object
org.citrusframework.validation.context.DefaultValidationContext
org.citrusframework.validation.json.JsonPathMessageValidationContext
- All Implemented Interfaces:
ValidationContext
Specialised validation context adds JSON path expressions for message validation.
- Since:
- 2.3
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classFluent builder. -
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 booleanisJsonPathExpression(String pathExpression) Check whether given path expression is a JSONPath expression.
-
Constructor Details
-
JsonPathMessageValidationContext
Constructor using fluent builder.- Parameters:
builder-
-
JsonPathMessageValidationContext
public JsonPathMessageValidationContext()Default constructor.
-
-
Method Details
-
getJsonPathExpressions
Get the control message elements that have to be present in the received message. Message element values are compared as well.- Returns:
- the jsonPathExpressions
-
isJsonPathExpression
Check whether given path expression is a JSONPath expression.- Parameters:
pathExpression-- Returns:
-