From f68130d2e55d6d531c56d82bbacf8730c0b60588 Mon Sep 17 00:00:00 2001 From: Sam Brannen <104798+sbrannen@users.noreply.github.com> Date: Mon, 3 Jun 2024 17:17:51 +0200 Subject: [PATCH] =?UTF-8?q?Update=20Javadoc=20for=20@=E2=81=A0TestBean=20s?= =?UTF-8?q?upport?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See gh-32943 --- .../bean/override/convention/TestBean.java | 6 +++--- .../convention/TestBeanOverrideProcessor.java | 19 ++++++++++--------- 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/spring-test/src/main/java/org/springframework/test/context/bean/override/convention/TestBean.java b/spring-test/src/main/java/org/springframework/test/context/bean/override/convention/TestBean.java index d1d988ac7a5..edb843bde75 100644 --- a/spring-test/src/main/java/org/springframework/test/context/bean/override/convention/TestBean.java +++ b/spring-test/src/main/java/org/springframework/test/context/bean/override/convention/TestBean.java @@ -36,9 +36,9 @@ import org.springframework.test.context.bean.override.BeanOverride; * *

The instance is created from a zero-argument static factory method in the * test class whose return type is compatible with the annotated field. In the - * case of a nested test, any enclosing class it might have is also considered. - * Similarly, in case the test class inherits from a base class the whole class - * hierarchy is considered. The method is deduced as follows. + * case of a nested test class, the enclosing class is also considered. Similarly, + * if the test class extends from a base class or implements any interfaces, the + * entire type hierarchy is considered. The method is deduced as follows. *