Move TestBeanFactory to example package

This commit is contained in:
Stéphane Nicoll
2024-06-12 11:05:22 +02:00
parent 3f2d9c372d
commit 1d0af7e5d3
2 changed files with 5 additions and 3 deletions

View File

@@ -20,6 +20,7 @@ import org.junit.jupiter.api.Test;
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;

View File

@@ -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";