Merge pull request #12774 from jsgrah-spring/master

JAVA-14662. Fix spring-jinq module to work with the latest Boot 2.7.x…
This commit is contained in:
Loredana Crusoveanu 2022-10-07 13:12:48 +03:00 committed by GitHub
commit da67c2d032
4 changed files with 9 additions and 15 deletions

View File

@ -983,7 +983,7 @@
<module>spring-jenkins-pipeline</module>
<module>spring-jersey</module>
<!-- <module>spring-jinq</module> --> <!-- does not support work with Spring Boot 2.7.2 -->
<module>spring-jinq</module>
<module>spring-jms</module>
<module>spring-kafka</module>

View File

@ -1,7 +1,8 @@
spring.datasource.url=jdbc:h2:~/jinq;;DB_CLOSE_ON_EXIT=FALSE
spring.datasource.url=jdbc:h2:~/jinq;DB_CLOSE_ON_EXIT=FALSE
spring.datasource.username=sa
spring.datasource.password=
spring.jpa.hibernate.ddl-auto=create-drop
spring.jpa.show-sql=true
spring.jpa.properties.hibernate.format_sql=true
spring.jpa.properties.hibernate.format_sql=true
spring.jpa.properties.hibernate.globally_quoted_identifiers=true

View File

@ -1,13 +1,11 @@
package com.baeldung;
import org.junit.Test;
import org.junit.runner.RunWith;
import com.baeldung.spring.jinq.JinqApplication;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
import com.baeldung.spring.jinq.JinqApplication;
@RunWith(SpringRunner.class)
@SpringBootTest(classes = JinqApplication.class)
public class SpringContextTest {

View File

@ -2,16 +2,11 @@ package com.baeldung.spring.jinq.repositories;
import static org.assertj.core.api.Assertions.assertThat;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.boot.test.context.SpringBootTest;
import com.baeldung.spring.jinq.JinqApplication;
@ContextConfiguration(classes = JinqApplication.class)
@RunWith(SpringJUnit4ClassRunner.class)
@SpringBootTest
public class CarRepositoryIntegrationTest {
@Autowired