Class ContainsMatcher


  • public class ContainsMatcher
    extends AbstractMatcher
    Matcher checking that actual contains input value.
    • Constructor Detail

      • ContainsMatcher

        public ContainsMatcher​(String value)
        Creates a contains matcher.
        Parameters:
        value - input value
      • ContainsMatcher

        public ContainsMatcher​(Pattern value)
        Creates a contains matcher.
        Parameters:
        value - input value
    • Method Detail

      • isSatisfiedBy

        public boolean isSatisfiedBy​(String currentValue)
        Description copied from class: AbstractMatcher
        Check if the matcher is matched given the value
        Specified by:
        isSatisfiedBy in class AbstractMatcher
        Parameters:
        currentValue - define the object of check name
        Returns:
        boolean value for isSatisfiedBy