Java Code Examples for org.springframework.cloud.openfeign.loadbalancer.FeignBlockingLoadBalancerClient#getDelegate()

The following examples show how to use org.springframework.cloud.openfeign.loadbalancer.FeignBlockingLoadBalancerClient#getDelegate() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: FeignHttpClientTests.java    From spring-cloud-openfeign with Apache License 2.0 5 votes vote down vote up
@Test
public void testFeignClientType() throws IllegalAccessException {
	assertThat(this.feignClient).isInstanceOf(FeignBlockingLoadBalancerClient.class);
	FeignBlockingLoadBalancerClient client = (FeignBlockingLoadBalancerClient) this.feignClient;
	Client delegate = client.getDelegate();
	assertThat(delegate).isInstanceOf(feign.httpclient.ApacheHttpClient.class);
}
 
Example 2
Source File: FeignOkHttpTests.java    From spring-cloud-openfeign with Apache License 2.0 5 votes vote down vote up
@Test
public void testFeignClientType() throws IllegalAccessException {
	assertThat(this.feignClient).isInstanceOf(FeignBlockingLoadBalancerClient.class);
	FeignBlockingLoadBalancerClient client = (FeignBlockingLoadBalancerClient) this.feignClient;
	Client delegate = client.getDelegate();
	assertThat(delegate).isInstanceOf(feign.okhttp.OkHttpClient.class);
}
 
Example 3
Source File: ValidFeignClientTests.java    From spring-cloud-openfeign with Apache License 2.0 5 votes vote down vote up
@Test
public void testFeignClientType() throws IllegalAccessException {
	assertThat(this.feignClient).isInstanceOf(FeignBlockingLoadBalancerClient.class);
	FeignBlockingLoadBalancerClient client = (FeignBlockingLoadBalancerClient) this.feignClient;
	Client delegate = client.getDelegate();
	assertThat(delegate).isInstanceOf(Client.Default.class);
}