Skip to content

Commit e9eaf8e

Browse files
committed
Add more types to be initialized at build time for GraalVM native image
Issue: #4440
1 parent 58c446c commit e9eaf8e

File tree

5 files changed

+8
-1
lines changed

5 files changed

+8
-1
lines changed

junit-jupiter-api/src/nativeImage/initialize-at-build-time

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
org.junit.jupiter.api.DisplayNameGenerator$IndicativeSentences
12
org.junit.jupiter.api.DisplayNameGenerator$Standard
23
org.junit.jupiter.api.TestInstance$Lifecycle
34
org.junit.jupiter.api.condition.OS

junit-jupiter-engine/src/nativeImage/initialize-at-build-time

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ org.junit.jupiter.engine.descriptor.NestedClassTestDescriptor
2020
org.junit.jupiter.engine.descriptor.TestFactoryTestDescriptor
2121
org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor
2222
org.junit.jupiter.engine.descriptor.TestTemplateTestDescriptor
23+
org.junit.jupiter.engine.discovery.ClassSelectorResolver
2324
org.junit.jupiter.engine.discovery.ClassSelectorResolver$DummyClassTemplateInvocationContext
2425
org.junit.jupiter.engine.execution.ConditionEvaluator
2526
org.junit.jupiter.engine.execution.InterceptingExecutableInvoker

junit-platform-engine/src/nativeImage/initialize-at-build-time

+2
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@ org.junit.platform.engine.UniqueIdFormat
55
org.junit.platform.engine.support.descriptor.ClassSource
66
org.junit.platform.engine.support.descriptor.MethodSource
77
org.junit.platform.engine.support.hierarchical.Node$ExecutionMode
8+
org.junit.platform.engine.support.store.NamespacedHierarchicalStore
9+
org.junit.platform.engine.support.store.NamespacedHierarchicalStore$EvaluatedValue

platform-tooling-support-tests/projects/graalvm-starter/src/test/java/com/example/project/ClassLevelAnnotationTests.java

+3
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,11 @@
1313
import org.junit.jupiter.api.Nested;
1414
import org.junit.jupiter.api.Test;
1515
import org.junit.jupiter.api.condition.EnabledInNativeImage;
16+
import org.junit.jupiter.api.DisplayNameGenerator;
17+
import org.junit.jupiter.api.IndicativeSentencesGeneration;
1618

1719
@EnabledInNativeImage
20+
@IndicativeSentencesGeneration(generator = DisplayNameGenerator.ReplaceUnderscores.class)
1821
class ClassLevelAnnotationTests {
1922
@Nested
2023
class Inner {

platform-tooling-support-tests/src/test/java/platform/tooling/support/tests/GraalVmStarterTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ void runsTestsInNativeImage(@TempDir Path workspace, @FilePrefix("gradle") Outpu
5252
assertThat(result.stdOutLines()) //
5353
.anyMatch(line -> line.contains("CalculatorTests > 1 + 1 = 2 SUCCESSFUL")) //
5454
.anyMatch(line -> line.contains("CalculatorTests > 1 + 100 = 101 SUCCESSFUL")) //
55-
.anyMatch(line -> line.contains("ClassLevelAnnotationTests$Inner > test() SUCCESSFUL")) //
55+
.anyMatch(line -> line.contains("ClassLevelAnnotationTests$Inner > ClassLevelAnnotationTests, Inner, test SUCCESSFUL")) //
5656
.anyMatch(
5757
line -> line.contains("com.example.project.CalculatorParameterizedClassTests > [1] 1 SUCCESSFUL")) //
5858
.anyMatch(

0 commit comments

Comments
 (0)