类 org.test4j.hamcrest.matcher.property.reflection.ReflectionComparator
的使用

使用 ReflectionComparator 的软件包
org.test4j.hamcrest.matcher.property.comparator   
org.test4j.hamcrest.matcher.property.reflection   
 

org.test4j.hamcrest.matcher.property.comparatorReflectionComparator 的使用
 

参数类型为 ReflectionComparatororg.test4j.hamcrest.matcher.property.comparator 中的方法
 Difference SimpleCasesComparator.compare(Object left, Object right, boolean onlyFirstDifference, ReflectionComparator reflectionComparator)
          Compares the given values.
 Difference ObjectComparator.compare(Object left, Object right, boolean onlyFirstDifference, ReflectionComparator reflectionComparator)
          Compares the given objects by iterating over the fields and comparing the corresponding values.
 Difference MapComparator.compare(Object left, Object right, boolean onlyFirstDifference, ReflectionComparator reflectionComparator)
          Compares the given maps by looping over the keys and comparing their values.
 Difference ListComparator.compare(Object left, Object right, boolean onlyFirstDifference, ReflectionComparator reflectionComparator)
          Compared the given collections/arrays.
 Difference IgnoreOrderComparator.compare(Object left, Object right, boolean onlyFirstDifference, ReflectionComparator reflectionComparator)
          Compares the given collections/arrays but ignoring the actual order of the elements.
 Difference IgnoreNumberComparator.compare(Object left, Object right, boolean onlyFirstDifference, ReflectionComparator reflectionComparator)
          Compares the two values by converting them to a double and comparing these double values.
 Difference IgnoreDefaultsComparator.compare(Object left, Object right, boolean onlyFirstDifference, ReflectionComparator reflectionComparator)
          Always returns null: both objects are equal.
 Difference IgnoreDatesComparator.compare(Object left, Object right, boolean onlyFirstDifference, ReflectionComparator reflectionComparator)
          Compares the given dates.
 Difference HibernateProxyComparator.compare(Object left, Object right, boolean onlyFirstDifference, ReflectionComparator reflectionComparator)
          Compares the given objects.
 Difference EqStringComparator.compare(Object left, Object right, boolean onlyFirstDifference, ReflectionComparator reflectionComparator)
           
 Difference Comparator.compare(Object left, Object right, boolean onlyFirstDifference, ReflectionComparator reflectionComparator)
          Compares the given objects and returns the difference (if any).
protected  void ObjectComparator.compareFields(Object left, Object right, Class clazz, ObjectDifference difference, boolean onlyFirstDifference, ReflectionComparator reflectionComparator)
          Compares the values of all fields in the given objects by use of reflection.
protected  void IgnoreOrderComparator.fillAllDifferences(ArrayList<Object> leftList, ArrayList<Object> rightList, ReflectionComparator reflectionComparator, UnorderedCollectionDifference difference)
          Calculates the difference of all elements in the left list with all elements of the right list.
protected  boolean IgnoreOrderComparator.isEqual(ArrayList<Object> leftList, ArrayList<Object> rightList, int leftIndex, ReflectionComparator reflectionComparator)
          Recursively checks whether there is a sequence so that both collections have matching elements.
 

org.test4j.hamcrest.matcher.property.reflectionReflectionComparator 的使用
 

返回 ReflectionComparatororg.test4j.hamcrest.matcher.property.reflection 中的方法
static ReflectionComparator ReflectionComparatorFactory.createRefectionComparator(EqMode... modes)
          Creates a reflection comparator for the given modes.
 



Copyright © 2013. All rights reserved.