File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
spring-test/src/test/java/org/springframework/test/context/aot Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -137,11 +137,13 @@ void endToEndTestsForEntireSpringTestModule() {
137
137
// Scan all base packages in spring-test.
138
138
.scan ("org.springframework.mock" , "org.springframework.test" )
139
139
// Or limit execution to a particular package and its subpackages.
140
- // - For example, to test @EJB and @PersistenceContext DI support:
141
- // .scan("org.springframework.test.context.testng.transaction.ejb ")
140
+ // - For example, to test JDBC support:
141
+ // .scan("org.springframework.test.context.jdbc ")
142
142
// We only include test classes named *Tests so that we don't pick up
143
143
// internal TestCase classes that aren't really tests.
144
144
.filter (clazz -> clazz .getSimpleName ().endsWith ("Tests" ))
145
+ // We don't have a way to abort a TestNG test mid-flight, and @EJB is not supported in AOT.
146
+ .filter (clazz -> !clazz .getPackageName ().contains ("testng.transaction.ejb" ))
145
147
.toList ();
146
148
147
149
// AOT BUILD-TIME: PROCESSING
You can’t perform that action at this time.
0 commit comments