diff --git a/spring-cloud-netflix-core/src/test/java/org/springframework/cloud/netflix/feign/ribbon/FeignRibbonClientTests.java b/spring-cloud-netflix-core/src/test/java/org/springframework/cloud/netflix/feign/ribbon/FeignRibbonClientTests.java index 772f4f972..78c3918e7 100644 --- a/spring-cloud-netflix-core/src/test/java/org/springframework/cloud/netflix/feign/ribbon/FeignRibbonClientTests.java +++ b/spring-cloud-netflix-core/src/test/java/org/springframework/cloud/netflix/feign/ribbon/FeignRibbonClientTests.java @@ -85,7 +85,7 @@ public class FeignRibbonClientTests { @Before public void init() { when(this.loadBalancer.chooseServer(any())).thenReturn( - new Server("foo.com", 8000)); + new Server("foo-domain", 8000)); //to fix NPE LoadBalancerStats stats = mock(LoadBalancerStats.class); when(this.loadBalancer.getLoadBalancerStats()).thenReturn(stats); @@ -97,7 +97,7 @@ public class FeignRibbonClientTests { Request request = new RequestTemplate().method("GET").append("http://foo/") .request(); this.client.execute(request, new Options()); - RequestMatcher matcher = new RequestMatcher("https://foo.com:8000/"); + RequestMatcher matcher = new RequestMatcher("http://foo-domain:8000/"); verify(this.delegate).execute(argThat(matcher), any(Options.class)); } @@ -107,7 +107,7 @@ public class FeignRibbonClientTests { Request request = new RequestTemplate().method("GET").append("https://foo/") .request(); this.client.execute(request, new Options()); - RequestMatcher matcher = new RequestMatcher("https://foo.com:8000/"); + RequestMatcher matcher = new RequestMatcher("https://foo-domain:8000/"); verify(this.delegate).execute(argThat(matcher), any(Options.class)); }