diff --git a/spring-test/src/test/java/org/springframework/test/context/bean/override/convention/TestBeanForInterfaceIntegrationTests.java b/spring-test/src/test/java/org/springframework/test/context/bean/override/convention/TestBeanForInterfaceIntegrationTests.java index 3d1111e839cd..8ef08c77af21 100644 --- a/spring-test/src/test/java/org/springframework/test/context/bean/override/convention/TestBeanForInterfaceIntegrationTests.java +++ b/spring-test/src/test/java/org/springframework/test/context/bean/override/convention/TestBeanForInterfaceIntegrationTests.java @@ -20,6 +20,7 @@ import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; +import org.springframework.test.context.bean.override.example.TestBeanFactory; import org.springframework.test.context.junit.jupiter.SpringJUnitConfig; import static org.assertj.core.api.Assertions.assertThat; diff --git a/spring-test/src/test/java/org/springframework/test/context/bean/override/convention/TestBeanFactory.java b/spring-test/src/test/java/org/springframework/test/context/bean/override/example/TestBeanFactory.java similarity index 80% rename from spring-test/src/test/java/org/springframework/test/context/bean/override/convention/TestBeanFactory.java rename to spring-test/src/test/java/org/springframework/test/context/bean/override/example/TestBeanFactory.java index b1ca21b4ffe6..45329408e662 100644 --- a/spring-test/src/test/java/org/springframework/test/context/bean/override/convention/TestBeanFactory.java +++ b/spring-test/src/test/java/org/springframework/test/context/bean/override/example/TestBeanFactory.java @@ -14,15 +14,16 @@ * limitations under the License. */ -package org.springframework.test.context.bean.override.convention; +package org.springframework.test.context.bean.override.example; /** - * Shared {@link TestBean @TestBean} factory methods. + * Interface that exposes a single method that is used by bean overriding + * tests. * * @author Sam Brannen * @since 6.2 */ -interface TestBeanFactory { +public interface TestBeanFactory { static String createTestMessage() { return "test";