Class CreateVariableValidationMatcher
java.lang.Object
org.citrusframework.validation.matcher.core.CreateVariableValidationMatcher
- All Implemented Interfaces:
org.citrusframework.validation.matcher.ParameterizedValidationMatcher<OptionalStringParameter>,org.citrusframework.validation.matcher.ValidationMatcher
public class CreateVariableValidationMatcher
extends Object
implements org.citrusframework.validation.matcher.ParameterizedValidationMatcher<OptionalStringParameter>
Creates new variables from given field. Either uses field name or control value as variable name.
- Since:
- 2.0
-
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
matcher, RESOURCE_PATH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvalidate(String fieldName, String value, OptionalStringParameter controlParameter, org.citrusframework.context.TestContext context) 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
validate
-
Constructor Details
-
CreateVariableValidationMatcher
public CreateVariableValidationMatcher()
-
-
Method Details
-
validate
public void validate(String fieldName, String value, OptionalStringParameter controlParameter, org.citrusframework.context.TestContext context) throws org.citrusframework.exceptions.ValidationException - Specified by:
validatein interfaceorg.citrusframework.validation.matcher.ParameterizedValidationMatcher<OptionalStringParameter>- Throws:
org.citrusframework.exceptions.ValidationException
-
getParameters
- Specified by:
getParametersin interfaceorg.citrusframework.validation.matcher.ParameterizedValidationMatcher<OptionalStringParameter>
-