Class ArgumentMatchingTool
java.lang.Object
org.mockito.internal.verification.argumentmatching.ArgumentMatchingTool
-
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.
-
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. -
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.
-