| Modifier and Type | Field and Description |
|---|---|
| private final RecursiveComparisonConfiguration | |
| private final RecursiveComparisonDifferenceCalculator |
| Access | Constructor and Description |
|---|---|
| public | RecursiveComparisonAssert(Object actual, RecursiveComparisonConfiguration recursiveComparisonConfiguration)
|
| Modifier and Type | Method and Description |
|---|---|
| public SELF | Returns: thisRecursiveComparisonAssert to chain other methods.the fields of the object under test to compare in the comparison. fieldNamesToCompare)Makes the recursive comparison to only compare given actual fields and their subfields (no other fields will be compared). |
| public SELF | Returns: thisRecursiveComparisonAssert to chain other methods.the types to compare in the recursive comparison. typesToCompare)Makes the recursive comparison to only compare given actual fields of the specified types and their subfields (no other fields will be compared). |
| private List | |
| public RecursiveComparisonConfiguration | Returns: theRecursiveComparisonConfiguration currently usedReturns the |
| public SELF | Returns: thisRecursiveComparisonAssert to chain other methods.Makes the recursive comparison to ignore all actual empty optional fields (including |
| public SELF | Returns: thisRecursiveComparisonAssert to chain other methods.Makes the recursive comparison to ignore all actual null fields (but note that the expected object null fields are used in the comparison). |
| public SELF | Returns: thisRecursiveComparisonAssert to chain other methods.This method instructs the recursive comparison to compare recursively all fields including the one whose type have overridden equals, except fields with java types (at some point we need to compare something!). |
| public SELF | Returns: thisRecursiveComparisonAssert to chain other methods.Makes the recursive comparison to ignore collection order in all fields in the object under test. |
| public SELF | Returns: thisRecursiveComparisonAssert to chain other methods.the fields of the object under test to ignore collection order in the comparison. fieldsToIgnoreCollectionOrder)Makes the recursive comparison to ignore collection order in the object under test specified fields. |
| public SELF | Returns: thisRecursiveComparisonAssert to chain other methods.regexes used to find the object under test fields to ignore collection order in the comparison. regexes)Makes the recursive comparison to ignore collection order in the object under test fields matching the specified regexes. |
| public SELF | Returns: thisRecursiveComparisonAssert to chain other methods.Makes the recursive comparison to ignore all expected null fields. |
| public SELF | Returns: thisRecursiveComparisonAssert to chain other methods.the field names of the object under test to ignore in the comparison. fieldNamesToIgnore)Makes the recursive comparison to ignore the given object under test fields. |
| public SELF | Returns: thisRecursiveComparisonAssert to chain other methods.regexes used to ignore fields in the comparison. regexes)Makes the recursive comparison to ignore the object under test fields whose name matches the given regexes. |
| public RecursiveComparisonAssert | Returns: thisRecursiveComparisonAssert to chain other methods.the types we want to ignore in the object under test fields. typesToIgnore)Makes the recursive comparison to ignore the object under test fields of the given types. |
| public RecursiveComparisonAssert | Returns: thisRecursiveComparisonAssert to chain other methods.regexes specifying the types to ignore. regexes)Makes the recursive comparison to ignore the fields of the object under test having types matching one of the given regexes. |
| public SELF | Returns: thisRecursiveComparisonAssert to chain other methods.the fields we want to force a recursive comparison on. fields)In case you have instructed the recursive to use overridden |
| public SELF | Returns: thisRecursiveComparisonAssert to chain other methods.regexes used to specify the fields we want to force a recursive comparison on. regexes)In case you have instructed the recursive comparison to use overridden |
| public SELF | Returns: thisRecursiveComparisonAssert to chain other methods.the types we want to force a recursive comparison on. types)By default, the recursive comparison uses overridden |
| public SELF | Returns: this assertion object.the object to compare expected)actual to.Overrides org. Implements org. |
| public SELF | Returns: this assertion object.the given array to search the actual value in. values)Overrides org. Implements org. |
| public SELF | Returns: this assertion object.the given iterable to search the actual value in. values)Overrides org. Implements org. |
| public SELF | Returns: this assertions objectthe object to compare other)actual to.Overrides org. Implements org. |
| public SELF | Returns: this assertion object.the given array to search the actual value in. values)Overrides org. Implements org. |
| public SELF | Returns: this assertion object.the given iterable to search the actual value in. values)Overrides org. Implements org. |
| private void | |
| public SELF | Returns: thisRecursiveComparisonAssert to chain other methods.By default, the recursive comparison compare recursively all fields including the ones whose type have overridden equals except fields with java types (at some point we need to compare something!). |
| private void | usingRecursiveComparator()
use a comparator performing a recursive comparison with the current recursiveComparisonConfiguration. |
| public SELF | Returns: thisRecursiveComparisonAssert to chain other methods.the comparator, String... Comparator to use to compare the given fieldsthe location from the root object of the fields the comparator should be used for fieldLocations)Allows registering a comparator to compare fields with the given locations. |
| public < the class type to register a comparator for T> SELF | Returns: thisRecursiveComparisonAssert to chain other methods.the comparator, Class<T> Comparator to use to compare the given fieldsthe type to be compared with the given comparator. type)Allows registering a comparator to compare the fields with the given type. |
| public SELF | withEnumStringComparison()
Allows the recursive comparison to compare an enum field against a String field and vice versa. |
| public SELF | Returns: thisRecursiveComparisonAssert to chain other methods.the equals, String... BiPredicate to use to compare the given fieldsthe location from the root object of the fields the BiPredicate should be used for fieldLocations)Allows registering a |
| public SELF | Returns: thisRecursiveComparisonAssert to chain other methods.the equals, String... BiPredicate to use to compare the fields matching the given regexesthe regexes from the root object of the field locations the BiPredicate should be used for regexes)Allows registering a |
| public < the class type to register a BiPredicate for T> SELF | Returns: thisRecursiveComparisonAssert to chain other methods.the equals, Class<T> BiPredicate to use to compare the given fieldsthe type to be compared with the given comparator. type)Allows registering a |
| public SELF | Returns: thisRecursiveComparisonAssert to chain other methods.the error message that will be thrown when comparison error occurred. message, String... the fields the error message should be used for. fieldLocations)Overrides an error message which would be shown when differences in the given fields while comparison occurred with the giving error message. |
| public SELF | Returns: thisRecursiveComparisonAssert to chain other methods.the error message that will be thrown when comparison error occurred. message, Class<?> the type the error message should be used for. type)Overrides an error message which would be shown when differences for the giving type while comparison occurred with the giving error message. |
| public SELF | Returns: thisRecursiveComparisonAssert to chain other methods.the introspectionStrategy)RecursiveComparisonIntrospectionStrategy to useDefines how objects are introspected in the recursive comparison, that is:
|
| public SELF | Returns: thisRecursiveComparisonAssert to chain other methods.Makes the recursive comparison to check that actual's type is compatible with expected's type (and do the same for each field). |
| pack-priv SELF |