Browse Source

Trying to fix tests

pull/6/head
Spencer Gibb 7 years ago
parent
commit
103bd6475f
No known key found for this signature in database
GPG Key ID: 7788A47380690861
  1. 2
      spring-cloud-netflix-zuul/src/test/java/org/springframework/cloud/netflix/zuul/FormZuulServletProxyApplicationTests.java
  2. 4
      spring-cloud-netflix-zuul/src/test/java/org/springframework/cloud/netflix/zuul/SimpleZuulServerApplicationTests.java

2
spring-cloud-netflix-zuul/src/test/java/org/springframework/cloud/netflix/zuul/FormZuulServletProxyApplicationTests.java

@ -69,7 +69,7 @@ import static org.springframework.cloud.netflix.zuul.filters.support.FilterConst
@RunWith(SpringJUnit4ClassRunner.class) @RunWith(SpringJUnit4ClassRunner.class)
@SpringBootTest(classes = FormZuulServletProxyApplication.class, webEnvironment = RANDOM_PORT, @SpringBootTest(classes = FormZuulServletProxyApplication.class, webEnvironment = RANDOM_PORT,
properties = {"zuul.routes.simplefzspat:/simplefzspat/**", "logging.level.org.springframework.cloud.netflix.zuul: DEBUG"}) properties = {"zuul.routes[simplefzspat].path:/simplefzspat/**", "zuul.routes[simplefzspat].serviceId:simplefzspat"})
@DirtiesContext @DirtiesContext
public class FormZuulServletProxyApplicationTests { public class FormZuulServletProxyApplicationTests {

4
spring-cloud-netflix-zuul/src/test/java/org/springframework/cloud/netflix/zuul/SimpleZuulServerApplicationTests.java

@ -46,10 +46,12 @@ import org.springframework.web.bind.annotation.RestController;
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNotNull;
import static org.springframework.boot.test.context.SpringBootTest.WebEnvironment.RANDOM_PORT;
import static org.springframework.cloud.netflix.zuul.filters.support.FilterConstants.PRE_TYPE; import static org.springframework.cloud.netflix.zuul.filters.support.FilterConstants.PRE_TYPE;
@RunWith(SpringJUnit4ClassRunner.class) @RunWith(SpringJUnit4ClassRunner.class)
@SpringBootTest(classes = SimpleZuulServerApplication.class, webEnvironment = WebEnvironment.RANDOM_PORT) @SpringBootTest(classes = SimpleZuulServerApplication.class, webEnvironment = RANDOM_PORT,
properties = "zuul.routes[testclient]:/testing123/**")
@DirtiesContext @DirtiesContext
public class SimpleZuulServerApplicationTests { public class SimpleZuulServerApplicationTests {

Loading…
Cancel
Save