RFR: 8345937: Update JUnit Platform to newest version

Kevin Rushforth kcr at openjdk.org
Fri Dec 13 19:02:42 UTC 2024


On Tue, 10 Dec 2024 18:07:44 GMT, Marius Hanl <mhanl at openjdk.org> wrote:

> The JUnit Platform got some updates over the last years, so it is a good idea to update it to the newest version.
> 
> That is from `5.8.1` to `5.11.3`.
> Affected dependencies:
> - `junit.jupiter`
> - `junit.platform`
> - `opentest4j`
> 
> Release notes: https://junit.org/junit5/docs/5.11.3/release-notes/
> 
> Note:
> I did a handful of CI runs and got a test failure once in `ServiceLifecycleTest`. Not sure yet if related to the update or not.

Update: I think this is a test bug.

@Maran23 Can you confirm a theory I have? We have a situation where an abstract base class of a test has a static `tearDownOnce` method, annotated with `@AfterAll`. A concrete test class extends the base class and attempts to "override" the static method in the base calss with an `@AfterAll` annotation on a static method of the same name in the subclass. My suspicion is that this used to accidentally work by hiding the method in the parent class in JUnit 5.8 and no longer does.

-------------

PR Comment: https://git.openjdk.org/jfx/pull/1662#issuecomment-2542068187


More information about the openjfx-dev mailing list