Class ArgumentMatchingTool


  • public class ArgumentMatchingTool
    extends java.lang.Object
    • 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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)
      • 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.