From a4b60438b82d72f2837059ac6d847e80be3129da Mon Sep 17 00:00:00 2001 From: Ryan Baxter Date: Wed, 29 May 2019 11:40:00 -0400 Subject: [PATCH] Removing @Ignores --- bus/src/test/java/demo/StandaloneClientApplicationTests.java | 2 -- hystrix-amqp/src/test/java/demo/HystrixApplicationTests.java | 4 ---- .../src/test/java/demo/TurbineStreamApplicationTests.java | 3 --- 3 files changed, 9 deletions(-) diff --git a/bus/src/test/java/demo/StandaloneClientApplicationTests.java b/bus/src/test/java/demo/StandaloneClientApplicationTests.java index fb70164..8c3e9c5 100644 --- a/bus/src/test/java/demo/StandaloneClientApplicationTests.java +++ b/bus/src/test/java/demo/StandaloneClientApplicationTests.java @@ -2,7 +2,6 @@ package demo; import static org.junit.Assert.assertNotNull; -import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; @@ -20,7 +19,6 @@ public class StandaloneClientApplicationTests { private ConfigServicePropertySourceLocator locator; @Test - @Ignore public void contextLoads() throws Exception { assertNotNull(this.locator); } diff --git a/hystrix-amqp/src/test/java/demo/HystrixApplicationTests.java b/hystrix-amqp/src/test/java/demo/HystrixApplicationTests.java index 0e904ff..b05362d 100644 --- a/hystrix-amqp/src/test/java/demo/HystrixApplicationTests.java +++ b/hystrix-amqp/src/test/java/demo/HystrixApplicationTests.java @@ -7,7 +7,6 @@ import static org.junit.Assert.assertTrue; import java.io.InputStream; import java.net.URL; -import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.boot.web.server.LocalServerPort; @@ -28,7 +27,6 @@ public class HystrixApplicationTests { int port; @Test - @Ignore public void testOk() { ResponseEntity response = new TestRestTemplate().getForEntity("http://localhost:" + port, String.class); assertNotNull("response was null", response); @@ -37,7 +35,6 @@ public class HystrixApplicationTests { } @Test - @Ignore public void testFallback() { ResponseEntity response = new TestRestTemplate().getForEntity("http://localhost:" + port+"/fail", String.class); assertNotNull("response was null", response); @@ -46,7 +43,6 @@ public class HystrixApplicationTests { } @Test - @Ignore public void hystrixStreamWorks() throws Exception { String url = "http://localhost:" + port; //you have to hit a Hystrix circuit breaker before the stream sends anything diff --git a/turbine-amqp/src/test/java/demo/TurbineStreamApplicationTests.java b/turbine-amqp/src/test/java/demo/TurbineStreamApplicationTests.java index b8af1a9..b4dd1e9 100644 --- a/turbine-amqp/src/test/java/demo/TurbineStreamApplicationTests.java +++ b/turbine-amqp/src/test/java/demo/TurbineStreamApplicationTests.java @@ -2,7 +2,6 @@ package demo; import static org.junit.Assert.assertTrue; -import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; @@ -23,12 +22,10 @@ public class TurbineStreamApplicationTests { DiscoveryClient discoveryClient; @Test - @Ignore public void contextLoads() { } @Test - @Ignore public void discoveryClientIsEureka() { assertTrue("discoveryClient is wrong type " + discoveryClient.getClass(), discoveryClient instanceof CompositeDiscoveryClient); CompositeDiscoveryClient compositeDiscoveryClient = (CompositeDiscoveryClient)discoveryClient;