Interface StringValidationMatcher

All Superinterfaces:
org.citrusframework.validation.matcher.ParameterizedValidationMatcher<StringParameter>, org.citrusframework.validation.matcher.ValidationMatcher
All Known Implementing Classes:
ContainsIgnoreCaseValidationMatcher, ContainsValidationMatcher, DatePatternValidationMatcher, EndsWithValidationMatcher, EqualsIgnoreCaseValidationMatcher, IgnoreNewLineValidationMatcher, MatchesValidationMatcher, StartsWithValidationMatcher, StringLengthValidationMatcher, TrimAllWhitespacesValidationMatcher, TrimValidationMatcher

public interface StringValidationMatcher extends org.citrusframework.validation.matcher.ParameterizedValidationMatcher<StringParameter>
Validation matcher supports a single String typed parameters as a control value.
  • 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
  • Method Summary

    Modifier and Type
    Method
    Description
     
    void
    validate(String fieldName, String value, String control, org.citrusframework.context.TestContext context)
    Validate with given control value.
    default void
    validate(String fieldName, String value, StringParameter controlParameter, org.citrusframework.context.TestContext context)
     

    Methods inherited from interface org.citrusframework.validation.matcher.ParameterizedValidationMatcher

    validate
  • Method Details

    • validate

      void validate(String fieldName, String value, String control, org.citrusframework.context.TestContext context) throws org.citrusframework.exceptions.ValidationException
      Validate with given control value.
      Throws:
      org.citrusframework.exceptions.ValidationException - when validation fails.
    • validate

      default void validate(String fieldName, String value, StringParameter controlParameter, org.citrusframework.context.TestContext context) throws org.citrusframework.exceptions.ValidationException
      Specified by:
      validate in interface org.citrusframework.validation.matcher.ParameterizedValidationMatcher<StringParameter>
      Throws:
      org.citrusframework.exceptions.ValidationException
    • getParameters

      default StringParameter getParameters()
      Specified by:
      getParameters in interface org.citrusframework.validation.matcher.ParameterizedValidationMatcher<StringParameter>