File tree Expand file tree Collapse file tree 1 file changed +0
-23
lines changed
spring-boot/src/test/java/org/springframework/boot/web/client Expand file tree Collapse file tree 1 file changed +0
-23
lines changed Original file line number Diff line number Diff line change 19
19
import java .util .Collections ;
20
20
import java .util .Set ;
21
21
22
- import com .squareup .okhttp .OkHttpClient ;
23
22
import org .apache .http .client .config .RequestConfig ;
24
23
import org .junit .Before ;
25
24
import org .junit .Rule ;
@@ -484,28 +483,6 @@ public void readTimeoutCanBeConfiguredOnNetty4RequestFactory() {
484
483
.isEqualTo (1234 );
485
484
}
486
485
487
- @ Test
488
- @ Deprecated
489
- public void connectTimeoutCanBeConfiguredOnOkHttp2RequestFactory () {
490
- ClientHttpRequestFactory requestFactory = this .builder
491
- .requestFactory (
492
- org .springframework .http .client .OkHttpClientHttpRequestFactory .class )
493
- .setConnectTimeout (1234 ).build ().getRequestFactory ();
494
- assertThat (((OkHttpClient ) ReflectionTestUtils .getField (requestFactory , "client" ))
495
- .getConnectTimeout ()).isEqualTo (1234 );
496
- }
497
-
498
- @ Test
499
- @ Deprecated
500
- public void readTimeoutCanBeConfiguredOnOkHttp2RequestFactory () {
501
- ClientHttpRequestFactory requestFactory = this .builder
502
- .requestFactory (
503
- org .springframework .http .client .OkHttpClientHttpRequestFactory .class )
504
- .setReadTimeout (1234 ).build ().getRequestFactory ();
505
- assertThat (((OkHttpClient ) ReflectionTestUtils .getField (requestFactory , "client" ))
506
- .getReadTimeout ()).isEqualTo (1234 );
507
- }
508
-
509
486
@ Test
510
487
public void connectTimeoutCanBeConfiguredOnOkHttp3RequestFactory () {
511
488
ClientHttpRequestFactory requestFactory = this .builder
You can’t perform that action at this time.
0 commit comments