Skip to content

Commit b0e723d

Browse files
committed
Delete obsolete test code
We no longer register reflection run-time hints for the SpringExtension since that is covered by the JupiterConfigProvider in the GraalVM Native Build Tools project.
1 parent a68d4ae commit b0e723d

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

spring-test/src/test/java/org/springframework/test/context/aot/samples/basic/BasicSpringJupiterTests.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,13 @@
1717
package org.springframework.test.context.aot.samples.basic;
1818

1919
import org.junit.jupiter.api.Nested;
20-
import org.junit.jupiter.api.extension.ExtendWith;
21-
import org.junit.jupiter.api.extension.Extension;
2220

2321
import org.springframework.beans.factory.annotation.Autowired;
2422
import org.springframework.beans.factory.annotation.Value;
2523
import org.springframework.context.ApplicationContext;
2624
import org.springframework.test.context.ActiveProfiles;
2725
import org.springframework.test.context.TestExecutionListeners;
2826
import org.springframework.test.context.TestPropertySource;
29-
import org.springframework.test.context.aot.samples.basic.BasicSpringJupiterTests.DummyExtension;
3027
import org.springframework.test.context.aot.samples.basic.BasicSpringJupiterTests.DummyTestExecutionListener;
3128
import org.springframework.test.context.aot.samples.common.MessageService;
3229
import org.springframework.test.context.junit.jupiter.SpringJUnitConfig;
@@ -39,9 +36,6 @@
3936
* @author Sam Brannen
4037
* @since 6.0
4138
*/
42-
// Register an extension other than the SpringExtension to verify proper lookups
43-
// for repeated annotations.
44-
@ExtendWith(DummyExtension.class)
4539
@SpringJUnitConfig(BasicTestConfiguration.class)
4640
@TestExecutionListeners(listeners = DummyTestExecutionListener.class, mergeMode = MERGE_WITH_DEFAULTS)
4741
@TestPropertySource(properties = "test.engine = jupiter")
@@ -73,9 +67,6 @@ void test(@Autowired ApplicationContext context, @Autowired MessageService messa
7367

7468
}
7569

76-
static class DummyExtension implements Extension {
77-
}
78-
7970
public static class DummyTestExecutionListener extends AbstractTestExecutionListener {
8071
}
8172

0 commit comments

Comments
 (0)