Class StringSuffixMatcher

java.lang.Object
mockit.internal.expectations.argumentMatching.StringSuffixMatcher
All Implemented Interfaces:
ArgumentMatcher<mockit.internal.expectations.argumentMatching.SubstringMatcher>

public final class StringSuffixMatcher extends Object
  • Constructor Details

    • StringSuffixMatcher

      public StringSuffixMatcher(@NonNull CharSequence substring)
  • Method Details

    • matches

      public boolean matches(@Nullable Object argValue)
      Description copied from interface: ArgumentMatcher
      Evaluates the matcher for the given argument.
    • writeMismatchPhrase

      public void writeMismatchPhrase(@NonNull ArgumentMismatch argumentMismatch)
      Description copied from interface: ArgumentMatcher
      Writes a phrase to be part of an error message describing an argument mismatch.
    • same

      public final boolean same(@NonNull mockit.internal.expectations.argumentMatching.SubstringMatcher other)
      Description copied from interface: ArgumentMatcher
      Indicates whether this matcher instance is functionally the same as another one of the same type.
      Specified by:
      same in interface ArgumentMatcher<mockit.internal.expectations.argumentMatching.SubstringMatcher>