Spring Boot 2.5.x compatible updates in spring-data-jpa-query-2

This commit is contained in:
Shashank 2021-10-15 09:24:10 +05:30
parent 40aa009be2
commit df95f2e2a8
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatThrownBy; import static org.assertj.core.api.Assertions.assertThatThrownBy;
@RunWith(SpringRunner.class) @RunWith(SpringRunner.class)
@DataJpaTest(properties = "spring.datasource.data=classpath:insert_users.sql") @DataJpaTest(properties = "spring.sql.init.data-locations=classpath:insert_users.sql")
public class UserRepositoryIntegrationTest { public class UserRepositoryIntegrationTest {
@Autowired @Autowired

View File

@ -17,7 +17,7 @@ import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue; import static org.junit.Assert.assertTrue;
@RunWith(SpringRunner.class) @RunWith(SpringRunner.class)
@DataJpaTest(properties="spring.datasource.data=classpath:import_entities.sql") @DataJpaTest(properties="spring.sql.init.data-locations=classpath:import_entities.sql")
public class ArticleRepositoryIntegrationTest { public class ArticleRepositoryIntegrationTest {
@Autowired @Autowired