Class JsonPathMessageValidationContext
java.lang.Object
org.citrusframework.validation.context.DefaultValidationContext
org.citrusframework.validation.json.JsonPathMessageValidationContext
- All Implemented Interfaces:
org.citrusframework.validation.context.ValidationContext
public class JsonPathMessageValidationContext
extends org.citrusframework.validation.context.DefaultValidationContext
Specialised validation context adds JSON path expressions for message validation.
- Since:
- 2.3
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classFluent builder. -
Field Summary
Fields inherited from interface org.citrusframework.validation.context.ValidationContext
logger, RESOURCE_PATH, TYPE_RESOLVER -
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.booleanMethods inherited from class org.citrusframework.validation.context.DefaultValidationContext
getStatus, updateStatus
-
Constructor Details
-
JsonPathMessageValidationContext
Constructor using fluent builder.- Parameters:
builder-
-
JsonPathMessageValidationContext
public JsonPathMessageValidationContext()Default constructor.
-
-
Method Details
-
requiresValidator
public boolean requiresValidator() -
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:
-