Fixes broken tests from url cleanup

This commit is contained in:
Spencer Gibb
2019-04-05 14:39:01 -04:00
parent 4bfe49451c
commit a6d3cd47fb
@@ -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));
}