Class TrimValidationMatcher
java.lang.Object
org.citrusframework.validation.matcher.core.TrimValidationMatcher
- All Implemented Interfaces:
org.citrusframework.validation.matcher.ParameterizedValidationMatcher<StringParameter>,StringValidationMatcher,org.citrusframework.validation.matcher.ValidationMatcher
ValidationMatcher trims leading and trailing whitespaces in value and control value.
- Since:
- 2.7.6
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.citrusframework.validation.matcher.ParameterizedValidationMatcher
org.citrusframework.validation.matcher.ParameterizedValidationMatcher.ControlParameters -
Field Summary
Fields inherited from interface org.citrusframework.validation.matcher.ValidationMatcher
logger, matcher, RESOURCE_PATH -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.citrusframework.validation.matcher.ParameterizedValidationMatcher
validateMethods inherited from interface org.citrusframework.validation.matcher.StringValidationMatcher
getParameters, validate
-
Constructor Details
-
TrimValidationMatcher
public TrimValidationMatcher()
-
-
Method Details
-
validate
public void validate(String fieldName, String value, String controlValue, org.citrusframework.context.TestContext context) throws org.citrusframework.exceptions.ValidationException Description copied from interface:StringValidationMatcherValidate with given control value.- Specified by:
validatein interfaceStringValidationMatcher- Throws:
org.citrusframework.exceptions.ValidationException- when validation fails.
-