Remove deprecated OKHttp 2.0 tests

pull/8263/merge
Phillip Webb 8 years ago
parent 425dbc3e52
commit e2cc4655f4

@ -19,7 +19,6 @@ package org.springframework.boot.web.client;
import java.util.Collections; import java.util.Collections;
import java.util.Set; import java.util.Set;
import com.squareup.okhttp.OkHttpClient;
import org.apache.http.client.config.RequestConfig; import org.apache.http.client.config.RequestConfig;
import org.junit.Before; import org.junit.Before;
import org.junit.Rule; import org.junit.Rule;
@ -484,28 +483,6 @@ public class RestTemplateBuilderTests {
.isEqualTo(1234); .isEqualTo(1234);
} }
@Test
@Deprecated
public void connectTimeoutCanBeConfiguredOnOkHttp2RequestFactory() {
ClientHttpRequestFactory requestFactory = this.builder
.requestFactory(
org.springframework.http.client.OkHttpClientHttpRequestFactory.class)
.setConnectTimeout(1234).build().getRequestFactory();
assertThat(((OkHttpClient) ReflectionTestUtils.getField(requestFactory, "client"))
.getConnectTimeout()).isEqualTo(1234);
}
@Test
@Deprecated
public void readTimeoutCanBeConfiguredOnOkHttp2RequestFactory() {
ClientHttpRequestFactory requestFactory = this.builder
.requestFactory(
org.springframework.http.client.OkHttpClientHttpRequestFactory.class)
.setReadTimeout(1234).build().getRequestFactory();
assertThat(((OkHttpClient) ReflectionTestUtils.getField(requestFactory, "client"))
.getReadTimeout()).isEqualTo(1234);
}
@Test @Test
public void connectTimeoutCanBeConfiguredOnOkHttp3RequestFactory() { public void connectTimeoutCanBeConfiguredOnOkHttp3RequestFactory() {
ClientHttpRequestFactory requestFactory = this.builder ClientHttpRequestFactory requestFactory = this.builder

Loading…
Cancel
Save