You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Document limitations of @CompileWithTargetClassAccess
Specifically, @CompileWithTargetClassAccess cannot be used with
@RepeatedTest and @ParameterizedTest methods since the
CompileWithTargetClassAccessExtension cannot support @testtemplate
invocations.
Copy file name to clipboardExpand all lines: spring-core-test/src/main/java/org/springframework/aot/test/generator/compile/CompileWithTargetClassAccess.java
+13-3Lines changed: 13 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -25,11 +25,21 @@
25
25
importorg.junit.jupiter.api.extension.ExtendWith;
26
26
27
27
/**
28
-
* Annotation that can be used on tests that need a {@link TestCompiler} with
29
-
* non-public access to target classes. Allows the compiler to define classes
30
-
* without polluting the test {@link ClassLoader}.
28
+
* Annotation that registers a JUnit Jupiter extension for test classes or test
29
+
* methods that need a {@link TestCompiler} with non-public access to target
30
+
* classes.
31
+
*
32
+
* <p>The extension allows the compiler to define classes without polluting the
33
+
* test {@link ClassLoader}.
34
+
*
35
+
* <p>NOTE: this annotation cannot be used in conjunction with
0 commit comments