| Modifier and Type | Class and Description |
|---|---|
| public static class | RecursiveComparisonConfiguration.
Builder to build |
| Modifier and Type | Field and Description |
|---|---|
| private Set | |
| private Set | |
| private boolean | |
| private static final boolean | |
| public static final DefaultRecursiveComparisonIntrospectionStrategy | |
| private FieldComparators | |
| private final Set | |
| private FieldMessages | |
| private boolean | |
| private boolean | |
| private boolean | |
| private boolean | |
| private boolean | |
| private Set | |
| private final List | |
| private List | |
| private final List | |
| private final List | |
| public static final String | |
| private RecursiveComparisonIntrospectionStrategy | |
| private boolean | |
| private TypeComparators | |
| private TypeMessages |
| Access | Constructor and Description |
|---|---|
| private | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | allowComparingEnumAgainstString(boolean
whether to allow the recursive comparison to compare enum field against string field. compareEnumAgainstString)Allows the recursive comparison to compare an enum field against a string field. |
| public static RecursiveComparisonConfiguration. | |
| private Optional | |
| pack-priv void | |
| public Stream | |
| pack-priv Stream | |
| public void | compareOnlyFields(String...
the fields of the object under test to compare in the comparison. fieldNamesToCompare)Adds the given fields and their subfields to the set of fields from the object under test to compare (no other fields will be compared). |
| public void | compareOnlyFieldsOfTypes(Class<?>...
the types to compare in the recursive comparison. typesToCompare)Adds the given fields of types and their subfields to the set of fields from the object under test to compare (fields of other types will not be compared). |
| private void | |
| private void | |
| private void | |
| private void | |
| private String | |
| private void | |
| private String | |
| private void | |
| private void | |
| private void | |
| protected void | |
| protected void | |
| private void | |
| private void | |
| private void | |
| private String | |
| private void | |
| private String | |
| private String | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private DualValue | |
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. |
| pack-priv boolean | |
| private String | |
| private String | |
| private String | formatRegisteredComparatorForRegexFields(Map.
|
| private static String | |
| pack-priv Set | |
| pack-priv Set | |
| public Comparator | |
| public Comparator | |
| public Set | Returns: the set of fields from the object under test to compare.Returns the set of fields to compare from the object under test (no other fields will be compared). |
| public Set | Returns: the set of types from the object under test to compare.Returns the set of type to compare from the object under test (fields of other types will not be compared). |
| public FieldComparators | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv boolean | |
| public Set | Returns: the list fields from the object under test to ignore collection order in the recursive comparison.Returns the list fields from the object under test to ignore collection order in the recursive comparison. |
| public List | Returns: the list of regexes used to find the object under test fields to ignore collection order in the recursive comparison.Returns the list of regexes used to find the object under test fields to ignore collection order in the recursive comparison. |
| public List | |
| public List | |
| public List | |
| pack-priv RecursiveComparisonIntrospectionStrategy | |
| public String | |
| public String | |
| public TypeComparators | |
| pack-priv Object | |
| public boolean | |
| public boolean | |
| pack-priv boolean | |
| pack-priv boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public int | |
| pack-priv boolean | |
| public void | |
| public void | ignoreCollectionOrder(boolean
whether to ignore collection order in the comparison. ignoreCollectionOrder)Sets whether to ignore collection order in the comparison. |
| public void | ignoreCollectionOrderInFields(String...
the fields of the object under test to ignore collection order in the comparison. fieldsToIgnoreCollectionOrder)Adds the given fields to the list fields from the object under test to ignore collection order in the recursive comparison. |
| public void | ignoreCollectionOrderInFieldsMatchingRegexes(String...
regexes used to find the object under test fields to ignore collection order in the comparison. regexes)Adds the given regexes to the list of regexes used to find the object under test fields to ignore collection order in the recursive comparison. |
| public void | ignoreOverriddenEqualsForFields(String...
the fields to force a recursive comparison on. fields)Adds the given fields to the list of fields to force a recursive comparison on. |
| public void | ignoreOverriddenEqualsForFieldsMatchingRegexes(String...
regexes used to specify the fields we want to force a recursive comparison on. regexes)Adds the given regexes to the list of regexes used find the fields to force a recursive comparison on. |
| public void | ignoreOverriddenEqualsForTypes(Class<?>...
the types to the list of types to force a recursive comparison on. types)Adds the given types to the list of types to force a recursive comparison on. |
| public boolean | |
| private boolean | |
| private boolean | |
| public boolean | |
| pack-priv boolean | |
| private boolean | |
| private boolean | |
| private boolean | |
| private boolean | |
| private boolean | |
| private boolean | |
| private boolean | |
| private boolean | |
| private boolean | |
| private static Predicate | |
| pack-priv boolean | |
| public String | |
| public void | registerComparatorForFields(Comparator<?>
the comparator, String... Comparator to use to compare the given fieldthe locations from the root object of the fields the comparator should be used for fieldLocations)Registers the given |
| public < the class type to register a comparator for T> void | registerComparatorForType(Comparator<? super T>
the comparator, Class<T> Comparator to use to compare the given typethe type to be compared with the given comparator. type)Registers the given |
| public void | registerEqualsForFields(BiPredicate<?, ?>
the equals implementation to compare the given fields. equals, String... the locations from the root object of the fields the comparator should be used for fieldLocations)Registers the given |
| public void | registerEqualsForFieldsMatchingRegexes(BiPredicate<?, ?>
the equals, String... BiPredicate to use to compare the fields matching the given regexesthe regexes from the root object of the fields location the BiPredicate should be used for regexes)Allows to register a |
| public < the class type to register a comparator for T> void | registerEqualsForType(BiPredicate<? super T, ? super T>
the equals implementation to compare the given type equals, Class<T> the type to be compared with the given equals implementation . type)Registers the given |
| public void | registerErrorMessageForFields(String
the error message that will be thrown when comparison error occurred message, String... the field locations the error message should be used for fieldLocations)Registers the giving message which would be shown when differences in the given fields while comparison occurred. |
| public void | registerErrorMessageForType(String
the error message that will be thrown when comparison error occurred message, Class<?> the type the error message should be used for clazz)Registers the giving message which would be shown when differences for the giving type while comparison occurred. |
| private void | |
| public void | |
| public void | setIgnoreAllActualEmptyOptionalFields(boolean
whether to ignore actual empty optional fields in the recursive comparison ignoringAllActualEmptyOptionalFields)Sets whether actual empty optional fields are ignored in the recursive comparison. |
| public void | setIgnoreAllActualNullFields(boolean
whether to ignore actual null fields in the recursive comparison ignoreAllActualNullFields)Sets whether actual null fields are ignored in the recursive comparison. |
| public void | setIgnoreAllExpectedNullFields(boolean
whether to ignore expected null fields in the recursive comparison ignoreAllExpectedNullFields)Sets whether expected null fields are ignored in the recursive comparison. |
| public void | setIntrospectionStrategy(RecursiveComparisonIntrospectionStrategy
the introspectionStrategy)RecursiveComparisonIntrospectionStrategy to useDefines how objects are introspected in the recursive comparison. |
| private boolean | |
| pack-priv boolean | |
| pack-priv boolean | |
| private boolean | |
| private boolean | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv boolean | |
| public void | strictTypeChecking(boolean
whether the recursive comparison will check that actual's type is compatible with expected's type. strictTypeChecking)Sets whether the recursive comparison will check that actual's type is compatible with expected's type (the same applies for each field). |
| private static Comparator | |
| public String | |
| public void |