Class WeekdayValidationMatcher
java.lang.Object
org.citrusframework.validation.matcher.core.WeekdayValidationMatcher
- All Implemented Interfaces:
ControlExpressionParser,ValidationMatcher
public class WeekdayValidationMatcher
extends Object
implements ValidationMatcher, ControlExpressionParser
Special validation matcher implementation checks that a given date matches an
expected weekday.
Control weekday value is one of these strings: MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY
In addition to that user can specify the date format to parse:
MONDAY(YYYY-MM-DD)
- Since:
- 1.3.1
-
Field Summary
Fields inherited from interface org.citrusframework.validation.matcher.ControlExpressionParser
DEFAULT_DELIMITERFields inherited from interface org.citrusframework.validation.matcher.ValidationMatcher
matcher, RESOURCE_PATH -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
WeekdayValidationMatcher
public WeekdayValidationMatcher()
-
-
Method Details
-
validate
public void validate(String fieldName, String value, List<String> controlParameters, TestContext context) throws ValidationException - Specified by:
validatein interfaceValidationMatcher- Throws:
ValidationException
-
extractControlValues
- Specified by:
extractControlValuesin interfaceControlExpressionParser
-