On Sun, 23 Aug 2026 18:19:17 GMT, Marius Hanl <[email protected]> wrote:
>> JUnit 6.0.0 and 6.1.0 and 6.1.3 is out and we can consider updating to it. >> >> Release Notes: >> https://docs.junit.org/current/release-notes/index.html#release-notes-6.0.0 >> >> Notes: >> - Java 17 is the baseline (so not a problem for us, since we have a higher >> baseline) >> - Deprecation were removed (not a problem, as we don't rely on any) >> - JUnit Vintage Engine is deprecated (not a problem, as we dropped support >> for it a year ago -> JUnit 4) >> >> JUnit 6 now uses a single version number for all dependencies, that is >> platform, jupiter and vintage (which we do not use anymore). That makes >> updating it easier. >> >> Junit 6.1 adds 2 more exciting features we can use: >> - `@DefaultLocale` >> - `@DefaultTimeZone` >> >> Both for changing the specific functionality just for the tests and change >> back to the previous value after. >> >> --------- >> - [x] I confirm that I make this contribution in accordance with the >> [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai). > > Marius Hanl has updated the pull request incrementally with one additional > commit since the last revision: > > add missing junit-bom-6.1.3.pom Please include the .classpath changes in https://github.com/andy-goryachev-oracle/jfx/pull/21 It's a bit of a pain to convert all existing individual junit launchers in eclipse, but I suppose it's not a problem anyone who does not use eclipse cares about. For those who do - the problem is that the Classpath Entries in the Dependencies tab cannot be easily switched to JUnit6 simply, you need to follow this process (at least, that's the process I've found to work): - open the debug/run configuration - select `Dependencies` tab - if you have custom "Override Dependencies", save them - click "Restore Default Entries" (this changes Classpath Entries to use JUnit 6) - restore your dependencies <img width="701" height="361" alt="Screenshot 2026-09-16 at 12 17 48" src="https://github.com/user-attachments/assets/e76adb4f-fc88-4343-99eb-8afdd28b32ec" /> ------------- PR Comment: https://git.openjdk.org/jfx/pull/1925#issuecomment-5703183405
