|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use ReflectionComparator | |
|---|---|
| org.unitils.reflectionassert | |
| org.unitils.reflectionassert.comparator | |
| org.unitils.reflectionassert.comparator.impl | |
| Uses of ReflectionComparator in org.unitils.reflectionassert |
|---|
| Methods in org.unitils.reflectionassert that return ReflectionComparator | |
|---|---|
static ReflectionComparator |
ReflectionComparatorFactory.createRefectionComparator(ReflectionComparatorMode... modes)
Creates a reflection comparator for the given modes. |
| Uses of ReflectionComparator in org.unitils.reflectionassert.comparator |
|---|
| Methods in org.unitils.reflectionassert.comparator with parameters of type ReflectionComparator | |
|---|---|
Difference |
Comparator.compare(java.lang.Object left,
java.lang.Object right,
boolean onlyFirstDifference,
ReflectionComparator reflectionComparator)
Compares the given objects and returns the difference (if any). |
| Uses of ReflectionComparator in org.unitils.reflectionassert.comparator.impl |
|---|
| Methods in org.unitils.reflectionassert.comparator.impl with parameters of type ReflectionComparator | |
|---|---|
Difference |
SimpleCasesComparator.compare(java.lang.Object left,
java.lang.Object right,
boolean onlyFirstDifference,
ReflectionComparator reflectionComparator)
Compares the given values. |
Difference |
ObjectComparator.compare(java.lang.Object left,
java.lang.Object right,
boolean onlyFirstDifference,
ReflectionComparator reflectionComparator)
Compares the given objects by iterating over the fields and comparing the corresponding values. |
Difference |
MapComparator.compare(java.lang.Object left,
java.lang.Object right,
boolean onlyFirstDifference,
ReflectionComparator reflectionComparator)
Compares the given maps by looping over the keys and comparing their values. |
Difference |
LenientOrderCollectionComparator.compare(java.lang.Object left,
java.lang.Object right,
boolean onlyFirstDifference,
ReflectionComparator reflectionComparator)
Compares the given collections/arrays but ignoring the actual order of the elements. |
Difference |
LenientNumberComparator.compare(java.lang.Object left,
java.lang.Object right,
boolean onlyFirstDifference,
ReflectionComparator reflectionComparator)
Compares the two values by converting them to a double and comparing these double values. |
Difference |
LenientDatesComparator.compare(java.lang.Object left,
java.lang.Object right,
boolean onlyFirstDifference,
ReflectionComparator reflectionComparator)
Compares the given dates. |
Difference |
IgnoreDefaultsComparator.compare(java.lang.Object left,
java.lang.Object right,
boolean onlyFirstDifference,
ReflectionComparator reflectionComparator)
Always returns null: both objects are equal. |
Difference |
HibernateProxyComparator.compare(java.lang.Object left,
java.lang.Object right,
boolean onlyFirstDifference,
ReflectionComparator reflectionComparator)
Compares the given objects. |
Difference |
CollectionComparator.compare(java.lang.Object left,
java.lang.Object right,
boolean onlyFirstDifference,
ReflectionComparator reflectionComparator)
Compared the given collections/arrays. |
protected void |
ObjectComparator.compareFields(java.lang.Object left,
java.lang.Object right,
java.lang.Class<?> clazz,
ObjectDifference difference,
boolean onlyFirstDifference,
ReflectionComparator reflectionComparator)
Compares the values of all fields in the given objects by use of reflection. |
protected void |
LenientOrderCollectionComparator.fillAllDifferences(java.util.ArrayList<java.lang.Object> leftList,
java.util.ArrayList<java.lang.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 |
LenientOrderCollectionComparator.isEqual(java.util.ArrayList<java.lang.Object> leftList,
java.util.ArrayList<java.lang.Object> rightList,
int leftIndex,
ReflectionComparator reflectionComparator)
Recursively checks whether there is a sequence so that both collections have matching elements. |
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||