@Test public void should_error_on_unknown_endpoint() { Instance instance = Instance.create(InstanceId.of("id")) .register(Registration.create("test", wireMock.url("/status")).build()); Mono<ClientResponse> exchange = instanceWebClient.instance(instance).get().uri("unknown").exchange(); StepVerifier.create(exchange) .verifyErrorSatisfies(ex -> assertThat(ex).isInstanceOf(ResolveEndpointException.class) .hasMessageContaining("Endpoint 'unknown' not found")); }
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();  }