Enum MatchingType
- All Implemented Interfaces:
Serializable,Comparable<MatchingType>,java.lang.constant.Constable
Represents the type of matching the should be done against the body of the request or
response.
- Since:
- 1.0.3
- Author:
- Marcin Grzejszczak, Tim Ysewyn, Olga Maciaszek-Sharma
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe user can provide custom command to execute.Special version of regex for date check.Verification by equality.Verification if the value for the given path is null.Verification if the value for the given path matches the provided regex.Special version of regex for time check.Special version of regex for timestamp check.Verification by type - is the type received in a body for the given path is of the same type. -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanregexRelated(MatchingType type) static MatchingTypeReturns the enum constant of this type with the specified name.static MatchingType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
EQUALITY
Verification by equality. -
TYPE
Verification by type - is the type received in a body for the given path is of the same type. If it's a collection you can verify number of occurrences. -
DATE
Special version of regex for date check. -
TIME
Special version of regex for time check. -
TIMESTAMP
Special version of regex for timestamp check. -
REGEX
Verification if the value for the given path matches the provided regex. -
COMMAND
The user can provide custom command to execute. -
NULL
Verification if the value for the given path is null.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
regexRelated
-