hibernate-validator-test-utils are not compatible to current AssertJ versions

Description

The hibernate-validator-test-utils in version 8.0.1.Final is using AssertJ 3.8.0 which is not compatible to current AssertJ versions. If you try to use the assertions provided by the test utils, you encounter the following issue:

This is due to a binary incompatibility. I assume this incompatibility was introduced as early as AssertJ version 3.9.1. See here:

Unfortunately, it seems like Hibernate is not able to bump the AssertJ version because it itself is coupled to the AssertJ version used by Bean Validation TCK, as mentioned in the following code comment:

I assume this renders the test utils useless for almost everyone. Is there a chance we can fix this?

Minimal reproducible example can be found here:

Environment

None

Activity

Show:

Marko Bekhta July 12, 2024 at 3:54 PM

Hey , thanks for the report. We can address this in the upcoming Hibernate Validator 9.0, I’ll add it to the plan. This is just a dependency management issue. If we split how we manage the dependency for tck tests and for all remaining modules, that should allow us to upgrade the assert version for the test utils.

Fixed

Details

Assignee

Reporter

Bug Testcase Reminder (view)

Bug reports should generally be accompanied by a test case!

Bug Testcase Reminder (edit)

Bug reports should generally be accompanied by a test case!

Participants

Dennis Effing
Marko Bekhta

Fix versions

Priority

Created July 12, 2024 at 2:59 PM
Updated August 1, 2024 at 8:38 AM
Resolved July 19, 2024 at 10:40 AM