@Test public void should_error_on_relative_url_without_instance() { Mono<ClientResponse> exchange = instanceWebClient.instance(Mono.empty()).get().uri("health").exchange(); StepVerifier.create(exchange) .verifyErrorSatisfies(ex -> assertThat(ex).isInstanceOf(ResolveInstanceException.class) .hasMessageContaining("Could not resolve Instance")); }
public WebClient instance(Mono<Instance> instance) { return webClient.mutate() .filters(filters -> filters.add(0, InstanceExchangeFilterFunctions.setInstance(instance))) .build(); }
InstanceWebClient { public WebClient instance(Mono<Instance> instance) { return webClient.mutate() .filters(filters -> filters.add(0, InstanceExchangeFilterFunctions.setInstance(instance))) .build(); } }
InstanceWebClient { public WebClient instance(Mono<Instance> instance) { return webClient.mutate() .filters(filters -> filters.add(0, InstanceExchangeFilterFunctions.setInstance(instance))) .build(); } protected  InstanceWebClient(WebClient webClient); }
InstanceWebClient { public WebClient instance(Mono<Instance> instance) { return webClient.mutate() .filters(filters -> filters.add(0, InstanceExchangeFilterFunctions.setInstance(instance))) .build(); } protected  InstanceWebClient(WebClient webClient); WebClient instance(Mono<Instance> instance); WebClient instance(Instance instance); static InstanceWebClient.Builder builder(); }
InstanceWebClient { public WebClient instance(Mono<Instance> instance) { return webClient.mutate() .filters(filters -> filters.add(0, InstanceExchangeFilterFunctions.setInstance(instance))) .build(); } protected  InstanceWebClient(WebClient webClient); WebClient instance(Mono<Instance> instance); WebClient instance(Instance instance); static InstanceWebClient.Builder builder();  }