|
17 | 17 | package org.springframework.test.context.aot.samples.basic;
|
18 | 18 |
|
19 | 19 | import org.junit.jupiter.api.Nested;
|
20 |
| -import org.junit.jupiter.api.extension.ExtendWith; |
21 |
| -import org.junit.jupiter.api.extension.Extension; |
22 | 20 |
|
23 | 21 | import org.springframework.beans.factory.annotation.Autowired;
|
24 | 22 | import org.springframework.beans.factory.annotation.Value;
|
25 | 23 | import org.springframework.context.ApplicationContext;
|
26 | 24 | import org.springframework.test.context.ActiveProfiles;
|
27 | 25 | import org.springframework.test.context.TestExecutionListeners;
|
28 | 26 | import org.springframework.test.context.TestPropertySource;
|
29 |
| -import org.springframework.test.context.aot.samples.basic.BasicSpringJupiterTests.DummyExtension; |
30 | 27 | import org.springframework.test.context.aot.samples.basic.BasicSpringJupiterTests.DummyTestExecutionListener;
|
31 | 28 | import org.springframework.test.context.aot.samples.common.MessageService;
|
32 | 29 | import org.springframework.test.context.junit.jupiter.SpringJUnitConfig;
|
|
39 | 36 | * @author Sam Brannen
|
40 | 37 | * @since 6.0
|
41 | 38 | */
|
42 |
| -// Register an extension other than the SpringExtension to verify proper lookups |
43 |
| -// for repeated annotations. |
44 |
| -@ExtendWith(DummyExtension.class) |
45 | 39 | @SpringJUnitConfig(BasicTestConfiguration.class)
|
46 | 40 | @TestExecutionListeners(listeners = DummyTestExecutionListener.class, mergeMode = MERGE_WITH_DEFAULTS)
|
47 | 41 | @TestPropertySource(properties = "test.engine = jupiter")
|
@@ -73,9 +67,6 @@ void test(@Autowired ApplicationContext context, @Autowired MessageService messa
|
73 | 67 |
|
74 | 68 | }
|
75 | 69 |
|
76 |
| - static class DummyExtension implements Extension { |
77 |
| - } |
78 |
| - |
79 | 70 | public static class DummyTestExecutionListener extends AbstractTestExecutionListener {
|
80 | 71 | }
|
81 | 72 |
|
|
0 commit comments