diff --git a/spring-test/src/main/java/org/springframework/test/context/junit/jupiter/SpringExtension.java b/spring-test/src/main/java/org/springframework/test/context/junit/jupiter/SpringExtension.java index 70767877378..2ab111d49d6 100644 --- a/spring-test/src/main/java/org/springframework/test/context/junit/jupiter/SpringExtension.java +++ b/spring-test/src/main/java/org/springframework/test/context/junit/jupiter/SpringExtension.java @@ -52,7 +52,6 @@ import org.springframework.core.annotation.MergedAnnotations; import org.springframework.core.annotation.MergedAnnotations.SearchStrategy; import org.springframework.core.annotation.RepeatableContainers; import org.springframework.test.context.MethodInvoker; -import org.springframework.test.context.TestConstructor; import org.springframework.test.context.TestContextAnnotationUtils; import org.springframework.test.context.TestContextManager; import org.springframework.test.context.event.ApplicationEvents; @@ -291,7 +290,8 @@ public class SpringExtension implements BeforeAllCallback, AfterAllCallback, Tes *
  • {@link ParameterResolutionDelegate#isAutowirable} returns {@code true}.
  • * *

    WARNING: If a test class {@code Constructor} is annotated - * with {@code @Autowired} or automatically autowirable (see {@link TestConstructor}), + * with {@code @Autowired} or automatically autowirable (see + * {@link org.springframework.test.context.TestConstructor @TestConstructor}), * Spring will assume the responsibility for resolving all parameters in the * constructor. Consequently, no other registered {@link ParameterResolver} * will be able to resolve parameters.