Class ArgumentMatchingTool
java.lang.Object
org.mockito.internal.verification.argumentmatching.ArgumentMatchingTool
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetNotMatchingArgsWithSameName
(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 boolean
safelyMatches
(ArgumentMatcher m, Object arg) private static boolean
toStringEquals
(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. -
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.
-