Class ValidateUtils
java.lang.Object
org.springframework.cloud.contract.spec.util.ValidateUtils
Checks the validity of DSL entries.
- Since:
- 1.0.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic List<MatchingStrategy.Type>Allowed matching types on the server side. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidvalidateServerValue(Object value, String msg) static voidvalidateServerValue(Pattern pattern, String msg) static voidvalidateServerValue(DslProperty value, String msg) static voidvalidateServerValue(MatchingStrategy matchingStrategy, String msg) static ObjectvalidateServerValueIsAvailable(Object value, String msg) Validates if for given object the server value is present.
-
Field Details
-
ALLOWED_MATCHING_TYPES_ON_SERVER_SIDE
Allowed matching types on the server side.
-
-
Method Details
-
validateServerValueIsAvailable
Validates if for given object the server value is present.- Parameters:
value- value to checkmsg- potential exception message- Returns:
- object if everything is fine
-
validateServerValue
-
validateServerValue
-
validateServerValue
-
validateServerValue
-