Commit 5b26096dd789bed4b21307cf72cd2b1e5c6b4b76

Authored by jcartign
1 parent 7f1b4919

Switch to @SpringBootTest as @SpringApplicationConfiguration is deprecated

src/test/java/fr/plil/sio/persistence/jdbc/GroupServiceTest.java
... ... @@ -5,13 +5,13 @@ import org.junit.Before;
5 5 import org.junit.Test;
6 6 import org.junit.runner.RunWith;
7 7 import org.springframework.beans.factory.annotation.Autowired;
8   -import org.springframework.boot.test.SpringApplicationConfiguration;
  8 +import org.springframework.boot.test.context.SpringBootTest;
9 9 import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
10 10  
11 11 import static org.junit.Assert.*;
12 12  
13 13 @RunWith(SpringJUnit4ClassRunner.class)
14   -@SpringApplicationConfiguration(classes = JdbcApplication.class)
  14 +@SpringBootTest(classes = JdbcApplication.class)
15 15 public class GroupServiceTest extends AbstractServiceSupport {
16 16  
17 17 @Autowired
... ...
src/test/java/fr/plil/sio/persistence/jdbc/RightServiceTest.java
... ... @@ -5,13 +5,13 @@ import fr.plil.sio.persistence.api.RightService;
5 5 import org.junit.Test;
6 6 import org.junit.runner.RunWith;
7 7 import org.springframework.beans.factory.annotation.Autowired;
8   -import org.springframework.boot.test.SpringApplicationConfiguration;
  8 +import org.springframework.boot.test.context.SpringBootTest;
9 9 import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
10 10  
11 11 import static org.junit.Assert.*;
12 12  
13 13 @RunWith(SpringJUnit4ClassRunner.class)
14   -@SpringApplicationConfiguration(classes = JdbcApplication.class)
  14 +@SpringBootTest(classes = JdbcApplication.class)
15 15 public class RightServiceTest extends AbstractServiceSupport {
16 16  
17 17 @Autowired
... ...
src/test/java/fr/plil/sio/persistence/jdbc/UserServiceTest.java
... ... @@ -5,13 +5,13 @@ import org.junit.Before;
5 5 import org.junit.Test;
6 6 import org.junit.runner.RunWith;
7 7 import org.springframework.beans.factory.annotation.Autowired;
8   -import org.springframework.boot.test.SpringApplicationConfiguration;
  8 +import org.springframework.boot.test.context.SpringBootTest;
9 9 import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
10 10  
11 11 import static org.junit.Assert.*;
12 12  
13 13 @RunWith(SpringJUnit4ClassRunner.class)
14   -@SpringApplicationConfiguration(classes = JdbcApplication.class)
  14 +@SpringBootTest(classes = JdbcApplication.class)
15 15 public class UserServiceTest extends AbstractServiceSupport {
16 16  
17 17 @Autowired
... ...