Class ArgumentMatchingTool

java.lang.Object
org.mockito.internal.verification.argumentmatching.ArgumentMatchingTool

public class ArgumentMatchingTool extends Object
  • Constructor Details

    • ArgumentMatchingTool

      private ArgumentMatchingTool()
  • Method Details

    • getSuspiciouslyNotMatchingArgsIndexes

      public static Integer[] getSuspiciouslyNotMatchingArgsIndexes(List<ArgumentMatcher> matchers, Object[] arguments)
      Suspiciously not matching arguments are those that don't match, the toString() representation is the same but types are different.
    • getNotMatchingArgsIndexes

      public static List<Integer> getNotMatchingArgsIndexes(List<ArgumentMatcher> matchers, Object[] arguments)
      Returns indexes of arguments not matching the provided matchers.
    • safelyMatches

      private static boolean safelyMatches(ArgumentMatcher m, Object arg)
    • toStringEquals

      private static boolean toStringEquals(ArgumentMatcher m, Object arg)
    • getNotMatchingArgsWithSameName

      public static Set<String> getNotMatchingArgsWithSameName(List<ArgumentMatcher> matchers, Object[] arguments)
      Suspiciously not matching arguments are those that don't match, and the classes have same simple name.