RFR: 7903047: Make JUnit runner use the JUnit Platform Launcher [v12]
Jonathan Gibbons
jjg at openjdk.java.net
Mon Apr 25 19:35:46 UTC 2022
On Mon, 25 Apr 2022 19:21:55 GMT, Jonathan Gibbons <jjg at openjdk.org> wrote:
>> Christian Stein has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Add support for `runWithJUnit4` flag
>
> src/share/classes/com/sun/javatest/regtest/agent/JUnitRunner.java line 114:
>
>> 112: private static void runWithJUnitPlatform(Class<?> mainClass) throws Exception {
>> 113: // https://junit.org/junit5/docs/current/user-guide/#launcher-api-execution
>> 114: Thread.currentThread().setContextClassLoader(mainClass.getClassLoader());
>
> this line, to set the context class loader, might be an issue for some core-libs tests.
... I guess it might just mean we can't use JUnit Jupiter for some of the low-level core-libs tests
-------------
PR: https://git.openjdk.java.net/jtreg/pull/78
More information about the jtreg-dev
mailing list