Class ContainsValidationMatcher

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

public class ContainsValidationMatcher extends Object implements StringValidationMatcher
ValidationMatcher based on String.contains()
  • 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

    • ContainsValidationMatcher

      public ContainsValidationMatcher()
  • 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.