Sourced from org.assertj:assertj-core's releases.
v.3.26.0
:boom: Breaking Changes
Core
Delegate
OptionalDouble
value comparison toDouble.compare
inhasValue
assertion #3411This fixes the comparison of
NaN
values which wasn't working the way thehasValue
Javadoc describes.The previous behavior can be obtained with
getAsDouble
:assertThat(OptionalDouble.of(Double.NaN).getAsDouble()).isSameAs(Double.NaN);
:no_entry_sign: Deprecated
Core
- Deprecate
ObjectAssertFactory
in favor ofAssertions.assertThat(Object)
- Deprecate
AssertionErrorFactory
in favor ofAssertionErrorCreator
- Deprecate
catchThrowableOfType(ThrowingCallable, Class)
in favor ofcatchThrowableOfType(Class, ThrowingCallable)
#2823- Deprecate
assertThat(Iterable, AssertFactory)
,assertThat(Iterable, Class)
and their respectivethen
variants #3453:sparkles: New Features
Core
- Support multiple
AfterAssertionErrorCollected
callbacks #3313- Add
InstanceOfAssertFactory
forSet
instances #3325- Add
doesNotContainKey
anddoesNotContainKeys
to GuavaMultimap
assertions #3334- Add assertions for JDK
YearMonth
type #3142- Add
TemporalAssert
type #3404- Add
ignoringFieldsOfTypesMatchingRegexes
#3369- Add
fail(Throwable)
andfail()
variants #3204- Add
isPrivate
toClass
assertions- Add
doesNot[Start/End]WithWhitespace
methods toCharSequence
assertions #3441- Add
createAssert(ValueProvider)
toAssertFactory
#3377- Add
values()
navigation method toAbstractMapAssert
#3297- Add
bytes()
/bytes(Charset)
/bytes(String)
navigation methods toAbstractStringAssert
#3232- Add
doesNotThrowAnyExceptionExcept
toAbstractThrowableAssert
#3261- Add
hasPermittedSubclasses
toClass
assertions #3316- Add
isUnmodifiable
toIterator
assertions #3477:bug: Bug Fixes
Core
... (truncated)
b7aae03
[maven-release-plugin] prepare release assertj-build-3.26.0be4cf7c
Add isUnmodifiable
to Iterator
assertions (#3477)6e760db
chore(deps-dev): bump org.springframework:spring-core from 5.3.35 to
5.3.36 (...29d2bbe
chore(deps): bump byte-buddy.version from 1.14.15 to 1.14.16 (#3487)97b642a
Rebuild default date formats used to parse string as dates when the
default t...9eeb352
Refactor tests covering date string conversion9707d51
chore(deps): bump kotlin.version from 1.9.24 to 2.0.0 (#3484)6bab517
chore(deps-dev): bump org.hibernate.orm:hibernate-core from 6.5.1.Final
to 6....5f70fec
Reduce Qodana verbosity in PRs99f2991
Fix Instant
conversion with Date
assertions
(#3467)