JAVA-14662. Fix spring-jinq module to work with the latest Boot 2.7.x. Update tests and annotations.

This commit is contained in:
jsgrah-spring 2022-10-04 12:26:47 +02:00
parent 0f23df40db
commit 67e6f6bdc7
2 changed files with 5 additions and 12 deletions

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