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. *