From 5b26096dd789bed4b21307cf72cd2b1e5c6b4b76 Mon Sep 17 00:00:00 2001 From: jcartign Date: Thu, 15 Sep 2016 11:50:47 +0200 Subject: [PATCH] Switch to @SpringBootTest as @SpringApplicationConfiguration is deprecated --- src/test/java/fr/plil/sio/persistence/jdbc/GroupServiceTest.java | 4 ++-- src/test/java/fr/plil/sio/persistence/jdbc/RightServiceTest.java | 4 ++-- src/test/java/fr/plil/sio/persistence/jdbc/UserServiceTest.java | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/test/java/fr/plil/sio/persistence/jdbc/GroupServiceTest.java b/src/test/java/fr/plil/sio/persistence/jdbc/GroupServiceTest.java index e9f4c0f..2e5829a 100644 --- a/src/test/java/fr/plil/sio/persistence/jdbc/GroupServiceTest.java +++ b/src/test/java/fr/plil/sio/persistence/jdbc/GroupServiceTest.java @@ -5,13 +5,13 @@ import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.boot.test.SpringApplicationConfiguration; +import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; import static org.junit.Assert.*; @RunWith(SpringJUnit4ClassRunner.class) -@SpringApplicationConfiguration(classes = JdbcApplication.class) +@SpringBootTest(classes = JdbcApplication.class) public class GroupServiceTest extends AbstractServiceSupport { @Autowired diff --git a/src/test/java/fr/plil/sio/persistence/jdbc/RightServiceTest.java b/src/test/java/fr/plil/sio/persistence/jdbc/RightServiceTest.java index 287d37d..3398e06 100644 --- a/src/test/java/fr/plil/sio/persistence/jdbc/RightServiceTest.java +++ b/src/test/java/fr/plil/sio/persistence/jdbc/RightServiceTest.java @@ -5,13 +5,13 @@ import fr.plil.sio.persistence.api.RightService; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.boot.test.SpringApplicationConfiguration; +import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; import static org.junit.Assert.*; @RunWith(SpringJUnit4ClassRunner.class) -@SpringApplicationConfiguration(classes = JdbcApplication.class) +@SpringBootTest(classes = JdbcApplication.class) public class RightServiceTest extends AbstractServiceSupport { @Autowired diff --git a/src/test/java/fr/plil/sio/persistence/jdbc/UserServiceTest.java b/src/test/java/fr/plil/sio/persistence/jdbc/UserServiceTest.java index 66f110c..fdd74fe 100644 --- a/src/test/java/fr/plil/sio/persistence/jdbc/UserServiceTest.java +++ b/src/test/java/fr/plil/sio/persistence/jdbc/UserServiceTest.java @@ -5,13 +5,13 @@ import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.boot.test.SpringApplicationConfiguration; +import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; import static org.junit.Assert.*; @RunWith(SpringJUnit4ClassRunner.class) -@SpringApplicationConfiguration(classes = JdbcApplication.class) +@SpringBootTest(classes = JdbcApplication.class) public class UserServiceTest extends AbstractServiceSupport { @Autowired -- libgit2 0.21.2