The interface SpringApplicationConfiguration is deprecated

>From @SpringApplicationConfiguration(classes=MyConfig.class) to 
>@SpringBootTest(classes=MyConfig.class)
Note: 
https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-1.4.0-M2-Release-Notes

Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/3f18c165
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/3f18c165
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/3f18c165

Branch: refs/heads/master
Commit: 3f18c165d384891540599b136cc222796a90fbba
Parents: a85758c
Author: Maxim Pogorelov <de.pensi...@gmail.com>
Authored: Mon Sep 5 17:28:41 2016 +0300
Committer: Claus Ibsen <davscl...@apache.org>
Committed: Mon Sep 5 18:04:54 2016 +0200

----------------------------------------------------------------------
 .../apache/camel/example/spring/boot/MySpringBootRouterTest.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/3f18c165/examples/camel-example-spring-boot/src/test/java/org/apache/camel/example/spring/boot/MySpringBootRouterTest.java
----------------------------------------------------------------------
diff --git 
a/examples/camel-example-spring-boot/src/test/java/org/apache/camel/example/spring/boot/MySpringBootRouterTest.java
 
b/examples/camel-example-spring-boot/src/test/java/org/apache/camel/example/spring/boot/MySpringBootRouterTest.java
index 1fe34f6..db6cb8f 100644
--- 
a/examples/camel-example-spring-boot/src/test/java/org/apache/camel/example/spring/boot/MySpringBootRouterTest.java
+++ 
b/examples/camel-example-spring-boot/src/test/java/org/apache/camel/example/spring/boot/MySpringBootRouterTest.java
@@ -24,12 +24,12 @@ import org.junit.Assert;
 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.boot.test.WebIntegrationTest;
 import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
 
 @RunWith(SpringJUnit4ClassRunner.class)
-@SpringApplicationConfiguration(classes = MySpringBootRouter.class)
+@SpringBootTest(classes = MySpringBootRouter.class)
 @WebIntegrationTest(randomPort = true)
 public class MySpringBootRouterTest extends Assert {
 

Reply via email to