github assertj/assertj assertj-build-3.27.0
v3.27.0

latest releases: assertj-build-3.27.7, assertj-build-3.27.6, assertj-build-3.27.5...
19 months ago

🚫 Deprecated

Core

  • Deprecate ClassBasedNavigableIterableAssert and ClassBasedNavigableListAssert #3529

✨ New Features

Core

  • Add actual() to access the object under test #3489
  • Add isCompletedWithValueMatchingWithin to CompletableFuture assertions #3506
  • Add completesExceptionallyWithin to CompletableFuture assertions #3597
  • Add inBinary to CharSequence assertions #3600
  • Support for Assertions.byLessThan(Duration) and Assertions.within(Duration) #3486
  • Add standard representation for CharSequence #3617
  • Add predicate descriptions overloads to anyMatch and noneMatch #3639
  • Add doesNotMatch(Predicate) #3684
  • Add usingEquals accepting a BiPredicate and an optional description to provide a custom comparison in assertions #3678

Guava

  • Add isNotEmpty to Table assertions #3559

🐛 Bug Fixes

Core

  • Recursive assertion hasNoNullFields throws NPE with fields of anonymous and local types #3534
  • Fix incorrect mutation of actualElementsGroupedByHashCode in recursive comparison
  • Recursive comparison ignoringFields not working properly with maps #2988
  • Custom representation ignored when describing expected items not in the actual list #3646
  • hasFieldOrPropertyWithValue swallows exceptions thrown by getters, and reports non-existent property instead #3563
  • satisfies() with nested assertions obscures stack trace #2542

⚡ Improvements

Core

  • Report all failing conditions when using satisfies(allOf(Condition...)) #3537
  • Fix Unicode escapes in inUnicode() Javadoc
  • Show error differences if values were compared with equals in recursive comparison #3209
  • Propagate common basetype for extracting(Function...) #3673
  • Add throwable stacktrace to ShouldNotContainCharSequence
  • Remove unused code and other minor cleanup #3683
  • Simplify comparison strategy isLessThan and isLessThanOrEqualTo in AbstractComparisonStrategy #3694
  • Update AbstractCharSequenceAssert.java reference #3700
  • Include stack trace of internal errors in all/any satisfy assertions

🔨 Dependency Upgrades

Core

  • Upgrade to Byte Buddy 1.15.11 #3703
  • Upgrade to JUnit BOM 5.11.4 #3702

Guava

  • Upgrade to Guava 33.4.0-jre #3705

❤️ Contributors

Thanks to all the contributors who worked on this release:

@JunHyungJang @mipo256 @vladykin @Marcono1234 @sunaleed @etrandafir93 @FlorianCousin @OlivierCavadenti @jh-instant @patrickuhlmann @IvoHD @alexandra-junghans @fmbenhassine @etrandafir93 @shaikhu @cookieMr @emmanuel-ferdman @mk868

Don't miss a new assertj release

NewReleases is sending notifications on new releases.