Class ArgumentMatchingTool


  • public class ArgumentMatchingTool
    extends java.lang.Object
    • Constructor Detail

      • ArgumentMatchingTool

        private ArgumentMatchingTool()
    • 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)