| Interface and Description |
|---|
| org.assertj.core.api.iterable.Extractor
use
Function instead |
| Class and Description |
|---|
| org.assertj.core.error.AssertionErrorMessagesAggregrator
use
AssertionErrorMessagesAggregator instead |
| org.assertj.core.internal.FieldByFieldComparator
This comparator is deprecated because it performs a shallow field by field comparison, i.e. elements are compared
field by field but the fields are compared with equals, use
AbstractIterableAssert.usingRecursiveFieldByFieldElementComparator(RecursiveComparisonConfiguration)
or AbstractObjectAssert.usingRecursiveComparison() instead to perform a true recursive comparison. |
| org.assertj.core.internal.IgnoringFieldsComparator
This comparator is deprecated because it performs a shallow field by field comparison, i.e. elements are compared
field by field but the fields are compared with equals, use
AbstractIterableAssert.usingRecursiveFieldByFieldElementComparator(RecursiveComparisonConfiguration)
or AbstractObjectAssert.usingRecursiveComparison() instead to perform a true recursive comparison. |
| org.assertj.core.api.Java6Assertions
For Android compatible assertions use the latest assertj 2.x version which is based on Java 7 only.
Assertions compatible with Android. Duplicated from |
| org.assertj.core.api.Java6BDDAssertions
For Android compatible assertions use the latest assertj 2.x version which is based on Java 7 only.
Android-compatible BDD-style assertions duplicated from |
| org.assertj.core.api.Java6BDDSoftAssertions
For Android compatible assertions use the latest assertj 2.x version which is based on Java 7 only.
BDD-style Android-compatible soft assertions. Duplicated from |
| org.assertj.core.api.Java6JUnitBDDSoftAssertions
For Android compatible assertions use the latest assertj 2.x version which is based on Java 7 only.
Duplicate of |
| org.assertj.core.api.Java6JUnitSoftAssertions
For Android compatible assertions use the latest assertj 2.x version which is based on Java 7 only.
JUnitSoftAssertions rule compatible with Android. Duplicated from |
| org.assertj.core.api.Java6SoftAssertions
For Android compatible assertions use the latest assertj 2.x version which is based on Java 7 only.
Soft assertions compatible with Android. Duplicated from |
| org.assertj.core.api.JUnitJupiterBDDSoftAssertions
use
SoftAssertionsExtension instead.
Same as SoftAssertions, but with the following differences: First, it's a JUnit Jupiter extension, which can be used without having to call assertAll(), example:
Second, the failures are recognized by IDE's (like IntelliJ IDEA) which open a comparison window. |
| org.assertj.core.api.JUnitJupiterSoftAssertions
use
SoftAssertionsExtension instead.
Same as SoftAssertions, but with the following differences: First, it's a JUnit Jupiter extension, which can be used without having to call assertAll(), example:
Second, the failures are recognized by IDE's (like IntelliJ IDEA) which open a comparison window. |
| org.assertj.core.internal.OnFieldsComparator
This comparator is deprecated because it performs a shallow field by field comparison, i.e. elements are compared
field by field but the fields are compared with equals, use
AbstractIterableAssert.usingRecursiveFieldByFieldElementComparator(RecursiveComparisonConfiguration)
or AbstractObjectAssert.usingRecursiveComparison() instead to perform a true recursive comparison. |
| org.assertj.core.api.junit.jupiter.SoftlyExtension
This functionality (and more) has been rolled into
SoftAssertionsExtension
as of AssertJ 3.18.0. |
| Method and Description |
|---|
org.assertj.core.api.AbstractAssert.areEqual(Object, Object)
ComparisonStrategy will become part of the public API in the next major release and this method
will be removed. |
| org.assertj.core.util.Objects.areEqual(Object, Object)
Use
Objects.deepEquals(Object, Object) instead. |
| org.assertj.core.util.Objects.areEqualArrays(Object, Object) |
| org.assertj.core.util.Preconditions.checkNotNull(T)
use
Objects.requireNonNull(Object) instead. |
| org.assertj.core.util.Preconditions.checkNotNull(T, String)
use
Objects.requireNonNull(Object, String) instead. |
| org.assertj.core.api.ObjectEnumerableAssert.containsOnlyElementsOf(Iterable<? extends ELEMENT>) |
| org.assertj.core.api.AbstractIterableAssert.containsOnlyElementsOf(Iterable<? extends ELEMENT>) |
| org.assertj.core.api.AbstractStringAssert.decodedAsBase64()
use
AbstractStringAssert.asBase64Decoded() instead.
Decodes the actual value as a Base64 encoded string, the decoded bytes becoming the new array under test. Examples: |
| org.assertj.core.util.Files.delete(File)
use https://commons.apache.org/proper/commons-io/javadocs/api-release/org/apache/commons/io/FileUtils.html#forceDelete-java.io.File- instead
|
| org.assertj.core.util.Lists.emptyList()
use
Collections.emptyList() instead. |
| org.assertj.core.api.AbstractByteArrayAssert.encodedAsBase64()
use
AbstractByteArrayAssert.asBase64Encoded() instead.
Encodes the actual array into a Base64 string, the encoded string becoming the new object under test. Examples: |
| org.assertj.core.api.Assert.equals(Object)
Throws
if called. It is easy to accidentally call
equals(Object) instead of . |
| org.assertj.core.api.AbstractAssert.equals(Object)
use
AbstractAssert.isEqualTo(java.lang.Object) instead |
| org.assertj.core.api.AbstractMapAssert.extracting(Object...)
use
AbstractMapAssert.extractingByKeys(Object[]) instead |
| org.assertj.core.api.AbstractMapAssert.extracting(Object)
use
AbstractMapAssert.extractingByKey(Object) instead |
| org.assertj.core.util.Maps.format(Map<?, ?>)
use
StandardRepresentation.toStringOf(Map) instead. |
| org.assertj.core.util.Maps.format(Representation, Map<?, ?>)
use
StandardRepresentation.toStringOf(Map) instead. |
| org.assertj.core.api.AbstractThrowableAssert.getCause()
use
AbstractThrowableAssert.cause() instead.
Returns a new assertion object that uses the cause of the current Throwable as the actual Throwable under test. Examples: |
| org.assertj.core.api.AbstractThrowableAssert.getRootCause()
use
AbstractThrowableAssert.rootCause() instead.
Returns a new assertion object that uses the root cause of the current Throwable as the actual Throwable under test. Examples: |
| org.assertj.core.api.AbstractFileAssert.hasContentEqualTo(File)
use
AbstractFileAssert.hasSameTextualContentAs(File) instead |
| org.assertj.core.api.AbstractInputStreamAssert.hasContentEqualTo(InputStream) |
| org.assertj.core.api.AbstractCompletableFutureAssert.hasFailed()
Combine isCompletedExceptionally with isNotCancelled instead:
This assertion is deprecated to change the semantics of failed to correspond to CompletableFuture.get() failing.
Original javadoc
Verifies that the
Assertion will pass :
Assertion will fail :
|
| org.assertj.core.api.AbstractCompletableFutureAssert.hasFailedWithThrowableThat()
Although not 100% the same, consider using
This assertion is deprecated because it relies on AbstractCompletableFutureAssert.hasFailed() semantics which we want to move away from (they
are not clear!) and to use failure semantics corresponding to CompletableFuture.get() failing.
Original javadoc
Verifies that the Assertion will pass :
Assertion will fail :
|
| org.assertj.core.api.AbstractClassAssert.hasFields(String...)
use
AbstractClassAssert.hasPublicFields(String...) instead. |
| org.assertj.core.api.AbstractCompletableFutureAssert.hasNotFailed()
Use matches with the following combination instead:
This assertion is deprecated because its semantic is not obvious.
Original javadoc
Verifies that the Assertion will pass :
Assertion will fail :
|
| org.assertj.core.api.AbstractIterableAssert.hasOnlyOneElementSatisfying(Consumer<? super ELEMENT>)
use
AbstractIterableAssert.singleElement() instead |
| org.assertj.core.api.AbstractFileAssert.hasSameContentAs(File)
use
AbstractFileAssert.hasSameTextualContentAs(File) instead.
Verifies that the content of the actual |
| org.assertj.core.api.AbstractFileAssert.hasSameContentAs(File, Charset) |
| org.assertj.core.api.AbstractPathAssert.hasSameContentAs(Path)
use
AbstractPathAssert.hasSameTextualContentAs(Path) instead
Verifies that the content of the actual |
| org.assertj.core.api.AbstractPathAssert.hasSameContentAs(Path, Charset)
use
AbstractPathAssert.hasSameTextualContentAs(Path, Charset) instead
Verifies that the content of the actual Examples: |
| org.assertj.core.api.AbstractDateAssert.isAfterOrEqualsTo(Date)
prefer calling
AbstractDateAssert.isAfterOrEqualTo(Date) |
| org.assertj.core.api.AbstractDateAssert.isAfterOrEqualsTo(String)
prefer calling
AbstractDateAssert.isAfterOrEqualTo(String) |
| org.assertj.core.api.AbstractDateAssert.isBeforeOrEqualsTo(Date)
prefer calling
AbstractDateAssert.isBeforeOrEqualTo(Date) |
| org.assertj.core.api.AbstractDateAssert.isBeforeOrEqualsTo(String)
prefer calling
AbstractDateAssert.isBeforeOrEqualTo(String) |
| org.assertj.core.api.AbstractObjectAssert.isEqualToComparingFieldByField(Object)
Use the recursive comparison by calling
AbstractObjectAssert.usingRecursiveComparison().
This method is deprecated because it only compares the first level of fields while the recursive comparison traverses all fields recursively (only stopping at java types). For example suppose actual and expected are of type A which has the following structure:
isEqualToComparingFieldByField will compare actual and expected A.b and A.i fields but not B fields
(it calls B equals method instead comparing B fields).The recursive comparison on the other hand will introspect B fields and then C fields and will compare actual and expected respective fields values, that is: A.i, A.B.s, A.B.C.s and A.B.C.d.
Concretely instead of writing:
You should write:
Original javadoc
Asserts that actual object is equal to the given object based on a property/field by property/field comparison (including
inherited ones). This can be handy if
Note that comparison is not recursive, if one of the field is an Object, it will be compared to the other
field using its If an object has a field and a property with the same name, the property value will be used over the field.
Private fields are used in comparison but this can be disabled using
The objects to compare can be of different types but the properties/fields used in comparison must exist in both, for example if actual object has a name String field, it is expected the other object to also have one. Example: |
| org.assertj.core.api.AbstractObjectAssert.isEqualToComparingFieldByFieldRecursively(Object)
Prefer calling
AbstractObjectAssert.usingRecursiveComparison() for comparing objects field by field as it offers more flexibility, better reporting and an easier to use API.
Asserts that the object under test (actual) is equal to the given object based on a recursive property/field by property/field comparison (including
inherited ones). This can be useful if actual's equals implementation does not suit you.
The recursive property/field comparison is not applied on fields having a custom equals implementation, i.e.
the overridden equals method will be used instead of a field by field comparison.
The recursive comparison handles cycles. By default
You can specify a custom comparator per (nested) fields or type with respectively The objects to compare can be of different types but must have the same properties/fields. For example if actual object has a name String field, it is expected the other object to also have one. If an object has a field and a property with the same name, the property value will be used over the field. Example: |
| org.assertj.core.api.AbstractObjectAssert.isEqualToComparingOnlyGivenFields(Object, String...)
Use the recursive comparison by calling
AbstractObjectAssert.usingRecursiveComparison() and specify the fields to ignore.
Warning: the recursive comparison does not provide a strictly equivalent feature, instead it provides several ways to ignore
fields in the comparison This method is deprecated because it only compares the first level of fields while the recursive comparison traverses all fields recursively (only stopping at java types). For example suppose actual and expected are of type A which has the following structure:
isEqualToComparingOnlyGivenFields will compare actual and expected A.b and A.i fields but not B fields
(it calls B equals method instead comparing B fields).The recursive comparison on the other hand will introspect B fields and then C fields and will compare actual and expected respective fields values, that is: A.i, A.B.s, A.B.C.s and A.B.C.d.
Assuming actual has 4 fields f1, f2, f3, f4, instead of writing:
You should write:
Original javadoc
Asserts that the actual object is equal to the given one using a property/field by property/field comparison on the given properties/fields only
(fields can be inherited fields or nested fields). This can be handy if
Note that comparison is not recursive, if one of the field is an Object, it will be compared to the other
field using its If an object has a field and a property with the same name, the property value will be used over the field.
Private fields are used in comparison but this can be disabled using
The objects to compare can be of different types but the properties/fields used in comparison must exist in both, for example if actual object has a name String field, it is expected the other object to also have one. Example: |
| org.assertj.core.api.AbstractObjectAssert.isEqualToIgnoringGivenFields(Object, String...)
Use the recursive comparison by calling
AbstractObjectAssert.usingRecursiveComparison() and chain with
ignoringFields(String...).
This method is deprecated because it only compares the first level of fields while the recursive comparison traverses all fields recursively (only stopping at java types). For example suppose actual and expected are of type A which has the following structure:
isEqualToIgnoringGivenFields will compare actual and expected A.b and A.i fields but not B fields
(it calls B equals method instead comparing B fields).The recursive comparison on the other hand will introspect B fields and then C fields and will compare actual and expected respective fields values, that is: A.i, A.B.s, A.B.C.s and A.B.C.d.
Concretely instead of writing:
You should write:
Note that the recursive comparison also allows to ignore fields
Asserts that the actual object is equal to the given one by comparing their properties/fields except for the given ones
(inherited ones are taken into account). This can be handy if
Note that comparison is not recursive, if one of the property/field is an Object, it will be compared to the other
field using its If an object has a field and a property with the same name, the property value will be used over the field.
Private fields are used in comparison but this can be disabled using
The objects to compare can be of different types but the properties/fields used in comparison must exist in both, for example if actual object has a name String field, it is expected the other object to also have one. Example: |
| org.assertj.core.api.AbstractObjectAssert.isEqualToIgnoringNullFields(Object)
Use the recursive comparison by calling
AbstractObjectAssert.usingRecursiveComparison() and chain with
ignoringExpectedNullFields().
This method is deprecated because it only compares the first level of fields while the recursive comparison traverses all fields recursively (only stopping at java types). For example suppose actual and expected are of type A which has the following structure:
isEqualToIgnoringNullFields will compare actual and expected A.b and A.i fields but not B fields
(it calls B equals method instead comparing B fields).The recursive comparison on the other hand will introspect B fields and then C fields and will compare actual and expected respective fields values, that is: A.i, A.B.s, A.B.C.s and A.B.C.d.
Concretely instead of writing:
You should write:
Note that the recursive comparison also allows to ignore actual's null fields with
Asserts that the actual object is equal to the given one by comparing actual's properties/fields with other's not null properties/fields only (including inherited ones). It means that if an actual field is not null and the corresponding field in other is null, this field will be ignored in comparison, but the opposite will make assertion fail (null field in actual, not null in other) as the field is used in the performed comparison and the values differ.
Note that comparison is not recursive, if one of the field is an Object, it will be compared to the other
field using its If an object has a field and a property with the same name, the property value will be used over the field.
Private fields are used in comparison but this can be disabled using
The objects to compare can be of different types but the properties/fields used in comparison must exist in both, for example if actual object has a name String field, it is expected other object to also have one. Example: |
| org.assertj.core.api.AbstractCharSequenceAssert.isJavaBlank()
Use
AbstractCharSequenceAssert.isBlank() instead. |
| org.assertj.core.api.AbstractCharSequenceAssert.isNotJavaBlank()
Use
AbstractCharSequenceAssert.isNotBlank() instead. |
| org.assertj.core.api.AbstractDateAssert.isWithinDayOfMonth(int)
use
AbstractDateAssert.hasDayOfMonth(int) instead. |
| org.assertj.core.api.AbstractDateAssert.isWithinDayOfWeek(int)
use
AbstractDateAssert.hasDayOfWeek(int) instead. |
| org.assertj.core.api.AbstractDateAssert.isWithinHourOfDay(int)
use
AbstractDateAssert.hasHourOfDay(int) instead. |
| org.assertj.core.api.AbstractDateAssert.isWithinMillisecond(int)
use
AbstractDateAssert.hasMillisecond(int) instead. |
| org.assertj.core.api.AbstractDateAssert.isWithinMinute(int)
use
AbstractDateAssert.hasMinute(int) instead. |
| org.assertj.core.api.AbstractDateAssert.isWithinMonth(int)
use
AbstractDateAssert.hasMonth(int) instead. |
| org.assertj.core.api.AbstractDateAssert.isWithinSecond(int)
use
AbstractDateAssert.hasSecond(int) instead. |
| org.assertj.core.api.AbstractDateAssert.isWithinYear(int)
use
AbstractDateAssert.hasYear(int) instead. |
| org.assertj.core.api.AbstractCharSequenceAssert.isXmlEqualTo(CharSequence)
This assertion has some limitations, for example it does not handle tab vs space and would fail if elements are the same but
in a different order.
The recommended approach is XML Unit which is able to deal with these limitations and provides many more features like XPath support and schema validation. Original javadoc:
Verifies that the actual Example: |
| org.assertj.core.api.AbstractCharSequenceAssert.isXmlEqualToContentOf(File) |
| org.assertj.core.error.ShouldBeBetween.shouldBeBetween(Comparable<? super T>, Comparable<? super T>, Comparable<? super T>, boolean, boolean, ComparisonStrategy) |
| org.assertj.core.error.ShouldBeGreater.shouldBeGreater(Comparable<? super T>, Comparable<? super T>, ComparisonStrategy) |
| org.assertj.core.error.ShouldBeGreaterOrEqual.shouldBeGreaterOrEqual(Comparable<? super T>, Comparable<? super T>, ComparisonStrategy) |
| org.assertj.core.error.ShouldBeLess.shouldBeLess(T, T, ComparisonStrategy) |
| org.assertj.core.error.ShouldBeLessOrEqual.shouldBeLessOrEqual(Comparable<? super T>, Comparable<? super T>, ComparisonStrategy) |
| org.assertj.core.util.Files.temporaryFolder()
Use either
org.junit.jupiter.api.io.TempDir or TemporaryFolder |
| org.assertj.core.api.AtomicBooleanAssert.usingComparator(Comparator<? super AtomicBoolean>)
Custom Comparator is not supported for Boolean comparison.
|
| org.assertj.core.api.AtomicBooleanAssert.usingComparator(Comparator<? super AtomicBoolean>, String)
Custom Comparator is not supported for Boolean comparison.
|
| org.assertj.core.api.AbstractBooleanAssert.usingComparator(Comparator<? super Boolean>)
Custom Comparator is not supported for Boolean comparison.
|
| org.assertj.core.api.AbstractBooleanAssert.usingComparator(Comparator<? super Boolean>, String)
Custom Comparator is not supported for Boolean comparison.
|
| org.assertj.core.api.AtomicReferenceArrayAssert.usingComparatorForElementFieldsWithNames(Comparator<C>, String...)
This method is used with
AtomicReferenceArrayAssert.usingFieldByFieldElementComparator() which is deprecated in favor of
AtomicReferenceArrayAssert.usingRecursiveFieldByFieldElementComparator(RecursiveComparisonConfiguration) or AbstractAssert.usingRecursiveComparison().
When using
and when using
|
| org.assertj.core.api.AbstractObjectArrayAssert.usingComparatorForElementFieldsWithNames(Comparator<C>, String...)
This method is used with
AbstractObjectArrayAssert.usingFieldByFieldElementComparator() which is deprecated in favor of
AbstractObjectArrayAssert.usingRecursiveFieldByFieldElementComparator(RecursiveComparisonConfiguration) or AbstractObjectArrayAssert.usingRecursiveComparison().
When using
and when using
|
| org.assertj.core.api.AbstractIterableAssert.usingComparatorForElementFieldsWithNames(Comparator<T>, String...)
This method is used with
AbstractIterableAssert.usingFieldByFieldElementComparator() which is deprecated in favor of
AbstractIterableAssert.usingRecursiveFieldByFieldElementComparator(RecursiveComparisonConfiguration) or AbstractIterableAssert.usingRecursiveComparison().
When using
and when using
|
| org.assertj.core.api.AtomicReferenceArrayAssert.usingComparatorForElementFieldsWithType(Comparator<C>, Class<C>)
This method is used with
AtomicReferenceArrayAssert.usingFieldByFieldElementComparator() which is deprecated in favor of
AtomicReferenceArrayAssert.usingRecursiveFieldByFieldElementComparator(RecursiveComparisonConfiguration) or AbstractAssert.usingRecursiveComparison().
When using
and when using
|
| org.assertj.core.api.AbstractObjectArrayAssert.usingComparatorForElementFieldsWithType(Comparator<C>, Class<C>)
This method is used with
AbstractObjectArrayAssert.usingFieldByFieldElementComparator() which is deprecated in favor of
AbstractObjectArrayAssert.usingRecursiveFieldByFieldElementComparator(RecursiveComparisonConfiguration) or AbstractObjectArrayAssert.usingRecursiveComparison().
When using
and when using
|
| org.assertj.core.api.AbstractIterableAssert.usingComparatorForElementFieldsWithType(Comparator<T>, Class<T>)
This method is used with
AbstractIterableAssert.usingFieldByFieldElementComparator() which is deprecated in favor of
AbstractIterableAssert.usingRecursiveFieldByFieldElementComparator(RecursiveComparisonConfiguration) or AbstractIterableAssert.usingRecursiveComparison().
When using
and when using
|
| org.assertj.core.api.AbstractMapAssert.usingDefaultElementComparator()
Custom element Comparator is not supported for MapEntry comparison.
|
| org.assertj.core.api.AbstractCharSequenceAssert.usingDefaultElementComparator()
Custom element Comparator is not supported for CharSequence comparison.
|
| org.assertj.core.api.AbstractBooleanArrayAssert.usingDefaultElementComparator()
Custom element Comparator is not supported for Boolean array comparison.
|
| org.assertj.core.api.AbstractBooleanArrayAssert.usingElementComparator(Comparator<? super Boolean>)
Custom element Comparator is not supported for Boolean array comparison.
|
| org.assertj.core.api.AbstractCharSequenceAssert.usingElementComparator(Comparator<? super Character>)
Custom element Comparator is not supported for CharSequence comparison.
|
| org.assertj.core.api.AbstractMapAssert.usingElementComparator(Comparator<? super Map.Entry<? extends K, ? extends V>>)
Custom element Comparator is not supported for MapEntry comparison.
|
| org.assertj.core.api.AtomicReferenceArrayAssert.usingElementComparatorIgnoringFields(String...)
This method is deprecated because it performs a shallow field by field comparison, i.e. elements are
compared field by field but the fields are compared with equals, use
AtomicReferenceArrayAssert.usingRecursiveFieldByFieldElementComparatorIgnoringFields(String...) instead.
See https://assertj.github.io/doc/#assertj-core-recursive-comparison |
| org.assertj.core.api.AbstractObjectArrayAssert.usingElementComparatorIgnoringFields(String...)
This method is deprecated because it performs a shallow field by field comparison, i.e. elements are
compared field by field but the fields are compared with equals, use
AbstractObjectArrayAssert.usingRecursiveFieldByFieldElementComparatorIgnoringFields(String...) instead.
See https://assertj.github.io/doc/#assertj-core-recursive-comparison |
| org.assertj.core.api.AbstractIterableAssert.usingElementComparatorIgnoringFields(String...)
This method is deprecated because it performs a shallow field by field comparison, i.e. elements are
compared field by field but the fields are compared with equals, use
AbstractIterableAssert.usingRecursiveFieldByFieldElementComparatorIgnoringFields(String...) instead.
See https://assertj.github.io/doc/#assertj-core-recursive-comparison |
| org.assertj.core.api.AtomicReferenceArrayAssert.usingElementComparatorOnFields(String...)
This method is deprecated because it performs a shallow field by field comparison, i.e. elements are
compared field by field but the fields are compared with equals, use
AtomicReferenceArrayAssert.usingRecursiveFieldByFieldElementComparatorOnFields(String...) instead.
See https://assertj.github.io/doc/#assertj-core-recursive-comparison |
| org.assertj.core.api.AbstractObjectArrayAssert.usingElementComparatorOnFields(String...)
This method is deprecated because it performs a shallow field by field comparison, i.e. elements are
compared field by field but the fields are compared with equals, use
AbstractObjectArrayAssert.usingRecursiveFieldByFieldElementComparatorOnFields(String...) instead.
See https://assertj.github.io/doc/#assertj-core-recursive-comparison |
| org.assertj.core.api.AbstractIterableAssert.usingElementComparatorOnFields(String...)
This method is deprecated because it performs a shallow field by field comparison, i.e. elements are
compared field by field but the fields are compared with equals, use
AbstractIterableAssert.usingRecursiveFieldByFieldElementComparatorOnFields(String...) instead.
See https://assertj.github.io/doc/#assertj-core-recursive-comparison |
| org.assertj.core.api.AtomicReferenceArrayAssert.usingFieldByFieldElementComparator()
This method is deprecated because it performs a shallow field by field comparison, i.e. elements are compared
field by field but the fields are compared with equals, use
AtomicReferenceArrayAssert.usingRecursiveFieldByFieldElementComparator()
or AbstractAssert.usingRecursiveComparison() instead to perform a true recursive comparison.
See https://assertj.github.io/doc/#assertj-core-recursive-comparison |
| org.assertj.core.api.AbstractObjectArrayAssert.usingFieldByFieldElementComparator()
This method is deprecated because it performs a shallow field by field comparison, i.e. elements are compared
field by field but the fields are compared with equals, use
AbstractObjectArrayAssert.usingRecursiveFieldByFieldElementComparator()
or AbstractObjectArrayAssert.usingRecursiveComparison() instead to perform a true recursive comparison.
See https://assertj.github.io/doc/#assertj-core-recursive-comparison |
| org.assertj.core.api.AbstractIterableAssert.usingFieldByFieldElementComparator()
This method is deprecated because it performs a shallow field by field comparison, i.e. elements are compared
field by field but the fields are compared with equals, use
AbstractIterableAssert.usingRecursiveFieldByFieldElementComparator()
or AbstractIterableAssert.usingRecursiveComparison() instead to perform a true recursive comparison.
See https://assertj.github.io/doc/#assertj-core-recursive-comparison |
| org.assertj.core.api.AbstractOptionalAssert.usingFieldByFieldValueComparator()
This method is deprecated because it performs a shallow field by field comparison, i.e. elements are compared
field by field but the fields are compared with equals, use
AbstractOptionalAssert.get() chained with AbstractObjectAssert.usingRecursiveComparison() instead.
See https://assertj.github.io/doc/#assertj-core-recursive-comparison |
Copyright © 2025. All rights reserved.