Skip to content

Added withFormatter() for Duration assert#4004

Closed
erizzo wants to merge 1 commit into
assertj:mainfrom
erizzo:gh-3976-withFormatter-for-Durations
Closed

Added withFormatter() for Duration assert#4004
erizzo wants to merge 1 commit into
assertj:mainfrom
erizzo:gh-3976-withFormatter-for-Durations

Conversation

@erizzo

@erizzo erizzo commented Nov 4, 2025

Copy link
Copy Markdown
Contributor

Check List:

This PR adds a method to AbstractDurationAssert to make it easy to override the formatting of Duration objects in test failure messages.

@joel-costigliola

Copy link
Copy Markdown
Member

Integrated thanks @erizzo !

@joel-costigliola joel-costigliola added this to the 4.0.0-M2 milestone Nov 12, 2025
dajoropo pushed a commit to dajoropo/assertj that referenced this pull request Nov 22, 2025
dajoropo pushed a commit to dajoropo/assertj that referenced this pull request Nov 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support *easy* custom Representation for Duration objects in assertion messages

2 participants