CAMEL-11769: Allow -starter to be compiled with SB1 and SB2

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

Branch: refs/heads/boot2
Commit: 1ce30623fc30d8c67adf0a44203162db4c9dfc75
Parents: 07763c4
Author: Claus Ibsen <davscl...@apache.org>
Authored: Mon Sep 11 15:23:02 2017 +0200
Committer: Claus Ibsen <davscl...@apache.org>
Committed: Mon Sep 11 15:23:02 2017 +0200

----------------------------------------------------------------------
 .../springboot/test/HystrixMappingAutoConfigurationTest.java     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/1ce30623/platforms/spring-boot/components-starter/camel-hystrix-starter/src/test/java/org/apache/camel/component/hystrix/springboot/test/HystrixMappingAutoConfigurationTest.java
----------------------------------------------------------------------
diff --git 
a/platforms/spring-boot/components-starter/camel-hystrix-starter/src/test/java/org/apache/camel/component/hystrix/springboot/test/HystrixMappingAutoConfigurationTest.java
 
b/platforms/spring-boot/components-starter/camel-hystrix-starter/src/test/java/org/apache/camel/component/hystrix/springboot/test/HystrixMappingAutoConfigurationTest.java
index c13a15b..35f23ab 100644
--- 
a/platforms/spring-boot/components-starter/camel-hystrix-starter/src/test/java/org/apache/camel/component/hystrix/springboot/test/HystrixMappingAutoConfigurationTest.java
+++ 
b/platforms/spring-boot/components-starter/camel-hystrix-starter/src/test/java/org/apache/camel/component/hystrix/springboot/test/HystrixMappingAutoConfigurationTest.java
@@ -29,8 +29,8 @@ import org.junit.Test;
 import org.junit.runner.RunWith;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
+import org.springframework.beans.factory.annotation.Value;
 import org.springframework.boot.autoconfigure.SpringBootApplication;
-import org.springframework.boot.context.embedded.LocalServerPort;
 import org.springframework.boot.test.context.SpringBootTest;
 import org.springframework.test.annotation.DirtiesContext;
 import org.springframework.test.context.ContextConfiguration;
@@ -50,7 +50,7 @@ public class HystrixMappingAutoConfigurationTest {
 
     private static final Logger LOG = 
LoggerFactory.getLogger(HystrixMappingAutoConfigurationTest.class);
 
-    @LocalServerPort
+    @Value("${local.server.port}")
     private int serverPort;
 
     @Test

Reply via email to