v3.26.0
·
346 commits
to 3.x
since this release
π₯ Breaking Changes
Core
-
Delegate
OptionalDoublevalue comparison toDouble.compareinhasValueassertion #3411Details
This fixes the comparison of
NaNvalues which wasn't working the way thehasValueJavadoc describes.The previous behavior can be obtained with
getAsDouble:assertThat(OptionalDouble.of(Double.NaN).getAsDouble()).isSameAs(Double.NaN);
π« Deprecated
Core
- Deprecate
ObjectAssertFactoryin favor ofAssertions.assertThat(Object) - Deprecate
AssertionErrorFactoryin favor ofAssertionErrorCreator - Deprecate
catchThrowableOfType(ThrowingCallable, Class)in favor ofcatchThrowableOfType(Class, ThrowingCallable)#2823 - Deprecate
assertThat(Iterable, AssertFactory),assertThat(Iterable, Class)and their respectivethenvariants #3453
β¨ New Features
Core
- Support multiple
AfterAssertionErrorCollectedcallbacks #3313 - Add
InstanceOfAssertFactoryforSetinstances #3325 - Add
doesNotContainKeyanddoesNotContainKeysto GuavaMultimapassertions #3334 - Add assertions for JDK
YearMonthtype #3142 - Add
TemporalAsserttype #3404 - Add
ignoringFieldsOfTypesMatchingRegexes#3369 - Add
fail(Throwable)andfail()variants #3204 - Add
isPrivatetoClassassertions - Add
doesNot[Start/End]WithWhitespacemethods toCharSequenceassertions #3441 - Add
createAssert(ValueProvider)toAssertFactory#3377 - Add
values()navigation method toAbstractMapAssert#3297 - Add
bytes()/bytes(Charset)/bytes(String)navigation methods toAbstractStringAssert#3232 - Add
doesNotThrowAnyExceptionExcepttoAbstractThrowableAssert#3261 - Add
hasPermittedSubclassestoClassassertions #3316 - Add
isUnmodifiabletoIteratorassertions #3477
π Bug Fixes
Core
- Preserve original order of elements when returning duplicates on
doesNotHaveDuplicates#3333 - Make
isNotEqualTo(boolean)pass whenactualisnull#3343 - Fix
isEqualTocomparison ofTimestampinstances withInstant#3410 - Fix
Instantconversion withDateassertions #3467 - Rebuild default date formats used to parse strings as dates when default timezone or lenient flag changes #3382
β‘ Improvements
- Avoid duplicating
maven-javadoc-pluginconfiguration and CSS files #3371 - Favor
additionalOptionentries inmaven-javadoc-plugin
Core
- Fix typo in Javadoc #3365
- Improve
AssertFactoryJavadoc - Add
Throwablestack trace toShouldHaveCauseExactlyInstance#3351 - Fix typo #3422
- Add
Throwablestack trace toShouldHaveCauseInstance#3392 - Implement boolean assertions directly in
AbstractBooleanAssertand removeBooleansinternal 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