public class DateRangeValidationMatcher extends Object implements ValidationMatcher
Constructor and Description |
---|
DateRangeValidationMatcher() |
Modifier and Type | Method and Description |
---|---|
protected Calendar |
toCalender(String date,
String datePattern)
Converts the supplied date to it's calendar representation.
|
void |
validate(String fieldName,
String value,
List<String> params,
TestContext context)
Method called on validation.
|
public void validate(String fieldName, String value, List<String> params, TestContext context) throws ValidationException
ValidationMatcher
validate
in interface ValidationMatcher
fieldName
- the fieldName for logging purpose.value
- the value to be validated.params
- the control parameters.ValidationException
- when validation failsprotected Calendar toCalender(String date, String datePattern)
datePattern
is
used for parsing the date.date
- the date to parsedatePattern
- the date format to use when parsing the dateCopyright © 2008–2017 ConSol Software GmbH. All rights reserved.