Fix test

parent 6a3c5097
......@@ -73,11 +73,7 @@ public class RibbonClientHttpRequestFactoryTests {
@Test
public void requestFactoryIsRibbon() {
ClientHttpRequestFactory requestFactory = this.restTemplate.getRequestFactory();
assertThat(requestFactory).isInstanceOf(AbstractClientHttpRequestFactoryWrapper.class);
Field field = ReflectionUtils.findField(AbstractClientHttpRequestFactoryWrapper.class, "requestFactory");
ReflectionUtils.makeAccessible(field);
ClientHttpRequestFactory delegate = (ClientHttpRequestFactory) ReflectionUtils.getField(field, requestFactory);
assertThat(delegate).isInstanceOf(RibbonClientHttpRequestFactory.class);
assertThat(requestFactory).isInstanceOf(RibbonClientHttpRequestFactory.class);
}
@Test
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment