Class TrimAllWhitespacesValidationMatcher

java.lang.Object
org.citrusframework.validation.matcher.core.TrimAllWhitespacesValidationMatcher
All Implemented Interfaces:
org.citrusframework.validation.matcher.ParameterizedValidationMatcher<StringParameter>, StringValidationMatcher, org.citrusframework.validation.matcher.ValidationMatcher

public class TrimAllWhitespacesValidationMatcher extends Object implements StringValidationMatcher
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
    Constructor
    Description
     
  • 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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

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

    validate

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

    getParameters, validate
  • Constructor Details

    • TrimAllWhitespacesValidationMatcher

      public TrimAllWhitespacesValidationMatcher()
  • Method Details

    • validate

      public void validate(String fieldName, String value, String control, org.citrusframework.context.TestContext context) throws org.citrusframework.exceptions.ValidationException
      Description copied from interface: StringValidationMatcher
      Validate with given control value.
      Specified by:
      validate in interface StringValidationMatcher
      Throws:
      org.citrusframework.exceptions.ValidationException - when validation fails.