Class EqualMatcher


  • public class EqualMatcher
    extends AbstractMatcher
    Matcher checking that actual is equal to input value.
    • Constructor Detail

      • EqualMatcher

        public EqualMatcher​(java.lang.String value)
        Creates an equal matcher.
        Parameters:
        value - input value
      • EqualMatcher

        public EqualMatcher​(java.util.regex.Pattern value)
        Creates an equal matcher.
        Parameters:
        value - input value
    • Method Detail

      • isSatisfiedBy

        public boolean isSatisfiedBy​(java.lang.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