Uses of Class
org.assertj.core.api.recursive.comparison.RecursiveComparisonConfiguration.Builder
-
Uses of RecursiveComparisonConfiguration.Builder in org.assertj.core.api.recursive.comparison
Modifier and TypeMethodDescriptionRecursiveComparisonConfiguration.builder()
Creates builder to buildRecursiveComparisonConfiguration
.RecursiveComparisonConfiguration.Builder.withComparatorForFields
(Comparator<?> comparator, String... fields) Registers the givenComparator
to compare the fields at the given locations.RecursiveComparisonConfiguration.Builder.withComparatorForType
(Comparator<? super T> comparator, Class<T> type) Registers the givenComparator
to compare the fields with the given type.RecursiveComparisonConfiguration.Builder.withComparedFields
(String... fieldsToCompare) Adds the given fields to the set of fields from the object under test to compare in the recursive comparison.RecursiveComparisonConfiguration.Builder.withEqualsForFields
(BiPredicate<?, ?> equals, String... fields) Registers the givenBiPredicate
to compare the fields at the given locations.RecursiveComparisonConfiguration.Builder.withEqualsForType
(BiPredicate<? super T, ? super T> equals, Class<T> type) Registers the givenBiPredicate
to compare the fields with the given type.RecursiveComparisonConfiguration.Builder.withErrorMessageForFields
(String message, String... fields) Registers the giving message which would be shown when differences in the given fields while comparison occurred.RecursiveComparisonConfiguration.Builder.withErrorMessageForType
(String message, Class<?> type) Registers the giving message which would be shown when differences for the giving type while comparison occurred.RecursiveComparisonConfiguration.Builder.withIgnoreAllActualEmptyOptionalFields
(boolean ignoreAllActualEmptyOptionalFields) Sets whether actual empty optional fields are ignored in the recursive comparison.RecursiveComparisonConfiguration.Builder.withIgnoreAllActualNullFields
(boolean ignoreAllActualNullFields) Sets whether actual null fields are ignored in the recursive comparison.RecursiveComparisonConfiguration.Builder.withIgnoreAllExpectedNullFields
(boolean ignoreAllExpectedNullFields) Sets whether expected null fields are ignored in the recursive comparison.RecursiveComparisonConfiguration.Builder.withIgnoreAllOverriddenEquals
(boolean ignoreAllOverriddenEquals) Force a recursive comparison on all fields (except java types) if true.RecursiveComparisonConfiguration.Builder.withIgnoreCollectionOrder
(boolean ignoreCollectionOrder) Sets whether to ignore collection order in the comparison.RecursiveComparisonConfiguration.Builder.withIgnoredCollectionOrderInFields
(String... fieldsToIgnoreCollectionOrder) Adds the given fields to the list fields from the object under test to ignore collection order in the recursive comparison.RecursiveComparisonConfiguration.Builder.withIgnoredCollectionOrderInFieldsMatchingRegexes
(String... 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.RecursiveComparisonConfiguration.Builder.withIgnoredFields
(String... fieldsToIgnore) Adds the given fields to the set of fields from the object under test to ignore in the recursive comparison.RecursiveComparisonConfiguration.Builder.withIgnoredFieldsMatchingRegexes
(String... regexes) Allows to ignore in the recursive comparison the object under test fields matching the given regexes.RecursiveComparisonConfiguration.Builder.withIgnoredFieldsOfTypes
(Class<?>... types) Adds the given types to the list fields from the object under test types to ignore in the recursive comparison.RecursiveComparisonConfiguration.Builder.withIgnoredOverriddenEqualsForFields
(String... fields) Adds the given fields to the list of fields to force a recursive comparison on.RecursiveComparisonConfiguration.Builder.withIgnoredOverriddenEqualsForFieldsMatchingRegexes
(String... regexes) Adds the given regexes to the list of regexes used find the fields to force a recursive comparison on.RecursiveComparisonConfiguration.Builder.withIgnoredOverriddenEqualsForTypes
(Class<?>... types) Adds the given types to the list of types to force a recursive comparison on.RecursiveComparisonConfiguration.Builder.withStrictTypeChecking
(boolean strictTypeChecking) Sets whether the recursive comparison will check that actual's type is compatible with expected's type (the same applies for each field).