use of com.netflix.client.config.IClientConfig in project feign by OpenFeign.
the class RibbonClientTest method testFeignOptionsClientConfig.
@Test
public void testFeignOptionsClientConfig() {
Request.Options options = new Request.Options(1111, 22222);
IClientConfig config = new RibbonClient.FeignOptionsClientConfig(options);
assertThat(config.get(CommonClientConfigKey.ConnectTimeout), equalTo(options.connectTimeoutMillis()));
assertThat(config.get(CommonClientConfigKey.ReadTimeout), equalTo(options.readTimeoutMillis()));
assertEquals(2, config.getProperties().size());
}
Aggregations