scordio
released this
26 May 13:22
·
11 commits
to 3.x
since this release
💥 Breaking Changes
Core
-
Delegate
OptionalDouble
value comparison toDouble.compare
inhasValue
assertion #3411Details
This 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);
🚫 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
✨ 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 Fixes
Core
- Preserve original order of elements when returning duplicates on
doesNotHaveDuplicates
#3333 - Make
isNotEqualTo(boolean)
pass whenactual
isnull
#3343 - Fix
isEqualTo
comparison ofTimestamp
instances withInstant
#3410 - Fix
Instant
conversion withDate
assertions #3467 - Rebuild default date formats used to parse strings as dates when default timezone or lenient flag changes #3382
⚡ Improvements
- Avoid duplicating
maven-javadoc-plugin
configuration and CSS files #3371 - Favor
additionalOption
entries inmaven-javadoc-plugin
Core
- Fix typo in Javadoc #3365
- Improve
AssertFactory
Javadoc - Add
Throwable
stack trace toShouldHaveCauseExactlyInstance
#3351 - Fix typo #3422
- Add
Throwable
stack trace toShouldHaveCauseInstance
#3392 - Implement boolean assertions directly in
AbstractBooleanAssert
and removeBooleans
internal class - Remove stack trace elements triggered by AssertJ in addition to AssertJ elements #3449
🔨 Dependency Upgrades
Core
Guava
- Upgrade to Guava 33.2.0-jre #3454
❤️ Contributors
Thanks to all the contributors who worked on this release:
@Achitheus @csct3434 @armandino @sbrannen @shaikhu @ryber @ranjitshinde91 @tmvlpl @valery1707 @izeye @yyytir777 @pbacz @biergit @Banuelorigni @java-coding-prodigy @vlsi @hazendaz @Kruschenstein @etrandafir93 @pbacz @dehasi