Skip to content

Commit c06b595

Browse files
committed
Add missing JUnit 5 init policies.
1 parent 3dbd0af commit c06b595

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

common/junit-platform-native/src/main/java/org/graalvm/junit/platform/config/platform/PlatformConfigProvider.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public void onLoad(NativeImageConfiguration config) {
6464
);
6565

6666
if (getMajorJDKVersion() >= 21) {
67-
/* new with simulated class initialization */
67+
/* new with --strict-image-heap */
6868
config.initializeAtBuildTime(
6969
"org.junit.platform.engine.support.descriptor.ClassSource",
7070
"org.junit.platform.engine.support.descriptor.MethodSource",
@@ -75,15 +75,21 @@ public void onLoad(NativeImageConfiguration config) {
7575
"org.junit.platform.launcher.core.DefaultLauncher",
7676
"org.junit.platform.launcher.core.DefaultLauncherConfig",
7777
"org.junit.platform.launcher.core.EngineExecutionOrchestrator",
78+
"org.junit.platform.launcher.core.LauncherConfigurationParameters$ParameterProvider$1",
7879
"org.junit.platform.launcher.core.LauncherConfigurationParameters$ParameterProvider$2",
7980
"org.junit.platform.launcher.core.LauncherConfigurationParameters$ParameterProvider$3",
81+
"org.junit.platform.launcher.core.LauncherConfigurationParameters$ParameterProvider$4",
8082
"org.junit.platform.launcher.core.LauncherDiscoveryResult",
8183
"org.junit.platform.launcher.core.LauncherListenerRegistry",
8284
"org.junit.platform.launcher.core.ListenerRegistry",
8385
"org.junit.platform.launcher.core.SessionPerRequestLauncher",
8486
"org.junit.platform.launcher.LauncherSessionListener$1",
8587
"org.junit.platform.launcher.listeners.UniqueIdTrackingListener",
86-
"org.junit.platform.reporting.shadow.org.opentest4j.reporting.events.api.DocumentWriter$1"
88+
"org.junit.platform.reporting.shadow.org.opentest4j.reporting.events.api.DocumentWriter$1",
89+
"org.junit.platform.suite.engine.SuiteEngineDescriptor",
90+
"org.junit.platform.suite.engine.SuiteLauncher",
91+
"org.junit.platform.suite.engine.SuiteTestDescriptor",
92+
"org.junit.platform.suite.engine.SuiteTestEngine"
8793
);
8894
}
8995

0 commit comments

Comments
 (0)