Skip to content

Commit af256dd

Browse files
authored
Fix WebClientTest compilation (vert-x3#2835)
Follows-up on eclipse-vertx/vert.x#5841 FakeEndpointResolver moved to FakeAddressResolver New methods declared in HttpClientInternal Signed-off-by: Thomas Segismont <tsegismont@gmail.com>
1 parent cc2c56d commit af256dd

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

vertx-web-client/src/test/java/io/vertx/ext/web/client/tests/WebClientTest.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import io.vertx.core.http.*;
88
import io.vertx.core.internal.VertxInternal;
99
import io.vertx.core.internal.http.HttpClientInternal;
10+
import io.vertx.core.internal.net.endpoint.EndpointResolverInternal;
1011
import io.vertx.core.json.DecodeException;
1112
import io.vertx.core.json.JsonArray;
1213
import io.vertx.core.json.JsonObject;
@@ -31,7 +32,7 @@
3132
import io.vertx.test.core.Repeat;
3233
import io.vertx.test.core.TestUtils;
3334
import io.vertx.test.fakeresolver.FakeAddress;
34-
import io.vertx.test.fakeresolver.FakeEndpointResolver;
35+
import io.vertx.test.fakeresolver.FakeAddressResolver;
3536
import io.vertx.test.proxy.Proxy;
3637
import io.vertx.test.proxy.ProxyKind;
3738
import io.vertx.test.proxy.WithProxy;
@@ -2253,7 +2254,7 @@ public void testQueryParamSpecialCharsDirect() throws Exception {
22532254
@Test
22542255
public void testCannotResolveAddress() throws Exception {
22552256
awaitFuture(client.close());
2256-
FakeEndpointResolver<?> resolver = new FakeEndpointResolver<>();
2257+
FakeAddressResolver<?> resolver = new FakeAddressResolver<>();
22572258
client = vertx.httpClientBuilder().with(createBaseClientOptions()).withAddressResolver(resolver).build();
22582259
webClient = WebClient.wrap(client);
22592260

@@ -2266,7 +2267,7 @@ public void testCannotResolveAddress() throws Exception {
22662267
@Test
22672268
public void testUseResolvedAddress() throws Exception {
22682269
awaitFuture(client.close());
2269-
FakeEndpointResolver<?> resolver = new FakeEndpointResolver<>();
2270+
FakeAddressResolver<?> resolver = new FakeAddressResolver<>();
22702271
resolver.registerAddress("mars", Collections.singletonList(testAddress));
22712272
client = vertx.httpClientBuilder().with(createBaseClientOptions()).withAddressResolver(resolver).build();
22722273
webClient = WebClient.wrap(client);
@@ -2303,6 +2304,8 @@ public Future<Boolean> updateSSLOptions(ClientSSLOptions options, boolean force)
23032304
@Override public VertxInternal vertx(){return null;}
23042305
@Override public Function<HttpClientResponse, Future<RequestOptions>> redirectHandler(){return null;}
23052306
@Override public HttpClientOptions options(){return new HttpClientOptions();}
2307+
@Override public EndpointResolverInternal originResolver() {return null;}
2308+
@Override public EndpointResolverInternal resolver() {return null;}
23062309

23072310
@Override
23082311
public io.vertx.core.internal.http.HttpChannelConnector channelConnector() {

0 commit comments

Comments
 (0)