Class EndsWithMatcher


  • public class EndsWithMatcher
    extends AbstractMatcher
    Matcher checking that actual ends with input value.
    • Constructor Detail

      • EndsWithMatcher

        public EndsWithMatcher​(String value)
        Creates a ends with matcher.
        Parameters:
        value - input value
      • EndsWithMatcher

        public EndsWithMatcher​(Pattern value)
        Creates a ends with 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