Class ArgumentMatchingTool
- java.lang.Object
-
- org.mockito.internal.verification.argumentmatching.ArgumentMatchingTool
-
public class ArgumentMatchingTool extends java.lang.Object
-
-
Constructor Summary
Constructors Modifier Constructor Description private
ArgumentMatchingTool()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.Set<java.lang.String>
getNotMatchingArgsWithSameName(java.util.List<ArgumentMatcher> matchers, java.lang.Object[] arguments)
Suspiciously not matching arguments are those that don't match, and the classes have same simple name.static java.lang.Integer[]
getSuspiciouslyNotMatchingArgsIndexes(java.util.List<ArgumentMatcher> matchers, java.lang.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, java.lang.Object arg)
private static boolean
toStringEquals(ArgumentMatcher m, java.lang.Object arg)
-
-
-
Method Detail
-
getSuspiciouslyNotMatchingArgsIndexes
public static java.lang.Integer[] getSuspiciouslyNotMatchingArgsIndexes(java.util.List<ArgumentMatcher> matchers, java.lang.Object[] arguments)
Suspiciously not matching arguments are those that don't match, the toString() representation is the same but types are different.
-
safelyMatches
private static boolean safelyMatches(ArgumentMatcher m, java.lang.Object arg)
-
toStringEquals
private static boolean toStringEquals(ArgumentMatcher m, java.lang.Object arg)
-
getNotMatchingArgsWithSameName
public static java.util.Set<java.lang.String> getNotMatchingArgsWithSameName(java.util.List<ArgumentMatcher> matchers, java.lang.Object[] arguments)
Suspiciously not matching arguments are those that don't match, and the classes have same simple name.
-
-