Prior to this commit, @TestBean factory methods were required to be defined in the test class or one of its superclasses. However, users may wish to define common factory methods in interfaces that can be shared easily across multiple test classes simply by implementing the necessary interface(s). This commit therefore switches from ReflectionUtils to MethodIntrospector to find @TestBean factory methods in implemented interfaces within the type hierarchy of the test class. Closes gh-32943 |
||
|---|---|---|
| .. | ||
| src | ||
| .springBeans | ||
| spring-test.gradle | ||