Class ArgumentMatchingTool
java.lang.Object
org.mockito.internal.verification.argumentmatching.ArgumentMatchingTool
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetNotMatchingArgsIndexes(List<ArgumentMatcher> matchers, Object[] arguments) Returns indexes of arguments not matching the provided matchers.getNotMatchingArgsWithSameName(List<ArgumentMatcher> matchers, Object[] arguments) Suspiciously not matching arguments are those that don't match, and the classes have same simple name.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.private static booleansafelyMatches(ArgumentMatcher m, Object arg) private static booleantoStringEquals(ArgumentMatcher m, Object arg)
-
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
-
toStringEquals
-
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.
-