Class ValidateUtils
- java.lang.Object
-
- org.springframework.cloud.contract.spec.util.ValidateUtils
-
public final class ValidateUtils extends Object
Checks the validity of DSL entries.- Since:
- 1.0.0
-
-
Field Summary
Fields Modifier and Type Field Description static List<MatchingStrategy.Type>ALLOWED_MATCHING_TYPES_ON_SERVER_SIDEAllowed matching types on the server side.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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 Detail
-
ALLOWED_MATCHING_TYPES_ON_SERVER_SIDE
public static List<MatchingStrategy.Type> ALLOWED_MATCHING_TYPES_ON_SERVER_SIDE
Allowed matching types on the server side.
-
-
Method Detail
-
validateServerValueIsAvailable
public static Object validateServerValueIsAvailable(Object value, String msg)
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
public static void validateServerValue(MatchingStrategy matchingStrategy, String msg)
-
validateServerValue
public static void validateServerValue(DslProperty value, String msg)
-
-