From 1eb0561d740dde9367d22ba61aa6ab13145a5a3e Mon Sep 17 00:00:00 2001 From: Dave Syer Date: Sat, 27 Aug 2016 14:25:10 +0100 Subject: [PATCH] Fix some tests that fail --- .../src/test/java/demo/AdhocTestSuite.java | 2 ++ ...nClientWithServerListApplicationTests.java | 22 ++++++++++--------- turbine-amqp/pom.xml | 12 +++++++++- 3 files changed, 25 insertions(+), 11 deletions(-) rename feign-hystrix/src/test/java/{demo => test}/FeignClientWithServerListApplicationTests.java (79%) diff --git a/feign-hystrix/src/test/java/demo/AdhocTestSuite.java b/feign-hystrix/src/test/java/demo/AdhocTestSuite.java index 8e2c7f2..ee82ce2 100644 --- a/feign-hystrix/src/test/java/demo/AdhocTestSuite.java +++ b/feign-hystrix/src/test/java/demo/AdhocTestSuite.java @@ -21,6 +21,8 @@ import org.junit.runner.RunWith; import org.junit.runners.Suite; import org.junit.runners.Suite.SuiteClasses; +import test.FeignClientWithServerListApplicationTests; + /** * A test suite for probing weird ordering problems in the tests. * diff --git a/feign-hystrix/src/test/java/demo/FeignClientWithServerListApplicationTests.java b/feign-hystrix/src/test/java/test/FeignClientWithServerListApplicationTests.java similarity index 79% rename from feign-hystrix/src/test/java/demo/FeignClientWithServerListApplicationTests.java rename to feign-hystrix/src/test/java/test/FeignClientWithServerListApplicationTests.java index 53a00d7..3be7148 100644 --- a/feign-hystrix/src/test/java/demo/FeignClientWithServerListApplicationTests.java +++ b/feign-hystrix/src/test/java/test/FeignClientWithServerListApplicationTests.java @@ -1,4 +1,4 @@ -package demo; +package test; import org.junit.Test; import org.junit.runner.RunWith; @@ -16,20 +16,22 @@ import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; -import demo.FeignClientWithServerListApplicationTests.TestApplication; +import test.FeignClientWithServerListApplicationTests.TestApplication; import static org.junit.Assert.assertTrue; @RunWith(SpringJUnit4ClassRunner.class) @SpringApplicationConfiguration(classes = TestApplication.class) -//Increase hystrix timeout or else requests timeout on CI server -@WebIntegrationTest(randomPort = true, value = {"myexample.ribbon.listOfServers:example.com", "hystrix.command.default.execution.isolation.thread.timeoutInMilliseconds: 60000"}) +// Increase hystrix timeout or else requests timeout on CI server +@WebIntegrationTest(randomPort = true, value = { + "myexample.ribbon.listOfServers:example.com", + "hystrix.command.default.execution.isolation.thread.timeoutInMilliseconds: 60000" }) @DirtiesContext public class FeignClientWithServerListApplicationTests { @Autowired private RestClient client; - + @Test public void clientConnects() { assertTrue(client.hello().contains("org.springframework.boot spring-boot-starter-parent 1.4.0.RELEASE - + @@ -42,6 +42,16 @@ org.springframework.cloud spring-cloud-starter-turbine-amqp + + + javax.servlet + javax.servlet-api + + + + org.springframework.boot + spring-boot-starter-validation + org.springframework.boot spring-boot-starter-test