diff --git a/spring-data-jdbc/src/test/java/org/springframework/data/jdbc/repository/AotJdbcRepositoryIntegrationTests.java b/spring-data-jdbc/src/test/java/org/springframework/data/jdbc/repository/AotJdbcRepositoryIntegrationTests.java index ddf52d0bf..8552fe04f 100644 --- a/spring-data-jdbc/src/test/java/org/springframework/data/jdbc/repository/AotJdbcRepositoryIntegrationTests.java +++ b/spring-data-jdbc/src/test/java/org/springframework/data/jdbc/repository/AotJdbcRepositoryIntegrationTests.java @@ -34,6 +34,7 @@ import org.springframework.data.jdbc.testing.EnabledOnDatabase; import org.springframework.data.jdbc.testing.IntegrationTest; import org.springframework.data.jdbc.testing.TestClass; import org.springframework.data.repository.core.support.RepositoryComposition; +import org.springframework.test.context.ContextConfiguration; /** * Integration test for {@link DummyEntityRepository} using JavaConfig with mounted AOT-generated repository methods. @@ -42,6 +43,7 @@ import org.springframework.data.repository.core.support.RepositoryComposition; * @author Christoph Strobl */ @IntegrationTest +@ContextConfiguration(classes = AotJdbcRepositoryIntegrationTests.AotConfig.class) @EnabledOnDatabase(DatabaseType.H2) class AotJdbcRepositoryIntegrationTests extends JdbcRepositoryIntegrationTests { diff --git a/spring-data-jdbc/src/test/java/org/springframework/data/jdbc/repository/JdbcRepositoryCreateIfNotFoundLookUpStrategyTests.java b/spring-data-jdbc/src/test/java/org/springframework/data/jdbc/repository/JdbcRepositoryCreateIfNotFoundLookUpStrategyTests.java index 970a9893f..353f2b2cb 100644 --- a/spring-data-jdbc/src/test/java/org/springframework/data/jdbc/repository/JdbcRepositoryCreateIfNotFoundLookUpStrategyTests.java +++ b/spring-data-jdbc/src/test/java/org/springframework/data/jdbc/repository/JdbcRepositoryCreateIfNotFoundLookUpStrategyTests.java @@ -26,6 +26,7 @@ import org.springframework.data.jdbc.testing.IntegrationTest; import org.springframework.data.jdbc.testing.TestClass; import org.springframework.data.jdbc.testing.TestConfiguration; import org.springframework.data.repository.query.QueryLookupStrategy; +import org.springframework.test.context.ContextConfiguration; /** * Test to verify that @@ -36,6 +37,7 @@ import org.springframework.data.repository.query.QueryLookupStrategy; * @author Jens Schauder */ @IntegrationTest +@ContextConfiguration(classes = JdbcRepositoryCreateIfNotFoundLookUpStrategyTests.Config.class) class JdbcRepositoryCreateIfNotFoundLookUpStrategyTests extends AbstractJdbcRepositoryLookUpStrategyTests { @Test // GH-1043 diff --git a/spring-data-jdbc/src/test/java/org/springframework/data/jdbc/repository/JdbcRepositoryCreateLookUpStrategyTests.java b/spring-data-jdbc/src/test/java/org/springframework/data/jdbc/repository/JdbcRepositoryCreateLookUpStrategyTests.java index 533ca7004..221433a14 100644 --- a/spring-data-jdbc/src/test/java/org/springframework/data/jdbc/repository/JdbcRepositoryCreateLookUpStrategyTests.java +++ b/spring-data-jdbc/src/test/java/org/springframework/data/jdbc/repository/JdbcRepositoryCreateLookUpStrategyTests.java @@ -16,6 +16,7 @@ package org.springframework.data.jdbc.repository; import org.junit.jupiter.api.Test; + import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.Configuration; @@ -26,6 +27,7 @@ import org.springframework.data.jdbc.testing.IntegrationTest; import org.springframework.data.jdbc.testing.TestClass; import org.springframework.data.jdbc.testing.TestConfiguration; import org.springframework.data.repository.query.QueryLookupStrategy; +import org.springframework.test.context.ContextConfiguration; /** * Test to verify that @EnableJdbcRepositories(queryLookupStrategy = QueryLookupStrategy.Key.CREATE) works @@ -35,6 +37,7 @@ import org.springframework.data.repository.query.QueryLookupStrategy; * @author Jens Schauder */ @IntegrationTest +@ContextConfiguration(classes = JdbcRepositoryCreateLookUpStrategyTests.Config.class) class JdbcRepositoryCreateLookUpStrategyTests extends AbstractJdbcRepositoryLookUpStrategyTests { @Test // GH-1043 diff --git a/spring-data-jdbc/src/test/java/org/springframework/data/jdbc/repository/JdbcRepositoryDeclaredLookUpStrategyTests.java b/spring-data-jdbc/src/test/java/org/springframework/data/jdbc/repository/JdbcRepositoryDeclaredLookUpStrategyTests.java index cc31bbbd4..00a527c6b 100644 --- a/spring-data-jdbc/src/test/java/org/springframework/data/jdbc/repository/JdbcRepositoryDeclaredLookUpStrategyTests.java +++ b/spring-data-jdbc/src/test/java/org/springframework/data/jdbc/repository/JdbcRepositoryDeclaredLookUpStrategyTests.java @@ -13,6 +13,7 @@ import org.springframework.data.jdbc.repository.config.EnableJdbcRepositories; import org.springframework.data.jdbc.testing.TestClass; import org.springframework.data.jdbc.testing.TestConfiguration; import org.springframework.data.repository.query.QueryLookupStrategy; +import org.springframework.test.context.ContextConfiguration; /** * Test to verify that @@ -21,6 +22,7 @@ import org.springframework.data.repository.query.QueryLookupStrategy; * * @author Diego Krupitza */ +@ContextConfiguration(classes = JdbcRepositoryDeclaredLookUpStrategyTests.Config.class) class JdbcRepositoryDeclaredLookUpStrategyTests extends AbstractJdbcRepositoryLookUpStrategyTests { @Test // GH-1043