Skip to content
This repository was archived by the owner on Feb 23, 2023. It is now read-only.

Commit 15c62c0

Browse files
committed
Support native hints on application class for native tests
Closes gh-1572
1 parent d1c1f0d commit 15c62c0

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

spring-native-configuration/src/main/java/org/springframework/test/SpringTestHints.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@
1616

1717
package org.springframework.test;
1818

19+
import org.springframework.nativex.hint.AotProxyHint;
20+
import org.springframework.nativex.hint.FieldHint;
21+
import org.springframework.nativex.hint.InitializationHint;
22+
import org.springframework.nativex.hint.MethodHint;
23+
import org.springframework.nativex.hint.ResourceHint;
24+
import org.springframework.nativex.hint.SerializationHint;
1925
import org.springframework.nativex.hint.TypeAccess;
2026
import org.springframework.nativex.hint.JdkProxyHint;
2127
import org.springframework.nativex.hint.NativeHint;
@@ -57,7 +63,9 @@
5763
}, access = TypeAccess.PUBLIC_METHODS),
5864
@TypeHint(types = {
5965
org.springframework.test.context.support.DelegatingSmartContextLoader.class
60-
}, access = TypeAccess.DECLARED_CONSTRUCTORS)
66+
}, access = TypeAccess.DECLARED_CONSTRUCTORS),
67+
@TypeHint(types = { AotProxyHint.class, FieldHint.class, InitializationHint.class, JdkProxyHint.class, MethodHint.class,
68+
NativeHint.class, ResourceHint.class, SerializationHint.class, TypeHint.class }, typeNames = "org.springframework.core.annotation.TypeMappedAnnotation[]" )
6169
},
6270
jdkProxies = {
6371
@JdkProxyHint(types = { org.springframework.test.context.ActiveProfiles.class, org.springframework.core.annotation.SynthesizedAnnotation.class }),

0 commit comments

Comments
 (0)