RFR: 8345937: Update JUnit Platform to newest version

Kevin Rushforth kcr at openjdk.org
Fri Dec 13 18:45:41 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.

The following test consistently fails on macOS and Linux (I haven't tried it on Windows) with JUnit 5.13.1 in our CI and on my local macOS system:


$ gradle -PTEST_ONLY=true -PFULL_TEST=true -PUSE_ROBOT=true :systemTests:test --tests SwingNodePlatformExitCrashTest
...
SwingNodePlatformExitCrashTest > executionError FAILED
    org.opentest4j.AssertionFailedError: Exceeded timeout limit of 10000 msec
        at app//test.util.Util.runAndWait(Util.java:168)
        at app//test.util.Util.runAndWait(Util.java:139)
        at app//test.util.Util.shutdown(Util.java:316)
        at app//test.robot.javafx.embed.swing.SwingNodeBase.teardownOnce(SwingNodeBase.java:81)
        at java.base at 23/java.lang.reflect.Method.invoke(Method.java:580)
        at java.base at 23/java.util.ArrayList.forEach(ArrayList.java:1597)
        at java.base at 23/java.util.Collections$UnmodifiableCollection.forEach(Collections.java:1117)
        at java.base at 23/java.util.ArrayList.forEach(ArrayList.java:1597)

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

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


More information about the openjfx-dev mailing list