45
45
* @author Stephane Nicoll
46
46
* @author Brian Clozel
47
47
*/
48
- class HttpComponentsClientHttpRequestFactoryTests extends AbstractHttpRequestFactoryTests {
48
+ class HttpComponentsClientRequestFactoryTests extends AbstractHttpRequestFactoryTests {
49
49
50
50
@ Override
51
51
protected ClientHttpRequestFactory createRequestFactory () {
52
- return new HttpComponentsClientHttpRequestFactory ();
52
+ return new HttpComponentsClientRequestFactory ();
53
53
}
54
54
55
55
@ Override
@@ -63,7 +63,7 @@ void httpMethods() throws Exception {
63
63
@ SuppressWarnings ("deprecation" )
64
64
void assertCustomConfig () throws Exception {
65
65
HttpClient httpClient = HttpClientBuilder .create ().build ();
66
- HttpComponentsClientHttpRequestFactory hrf = new HttpComponentsClientHttpRequestFactory (httpClient );
66
+ HttpComponentsClientRequestFactory hrf = new HttpComponentsClientRequestFactory (httpClient );
67
67
hrf .setConnectTimeout (1234 );
68
68
hrf .setConnectionRequestTimeout (4321 );
69
69
@@ -88,7 +88,7 @@ void defaultSettingsOfHttpClientMergedOnExecutorCustomization() throws Exception
88
88
Configurable configurable = (Configurable ) client ;
89
89
given (configurable .getConfig ()).willReturn (defaultConfig );
90
90
91
- HttpComponentsClientHttpRequestFactory hrf = new HttpComponentsClientHttpRequestFactory (client );
91
+ HttpComponentsClientRequestFactory hrf = new HttpComponentsClientRequestFactory (client );
92
92
assertThat (retrieveRequestConfig (hrf )).as ("Default client configuration is expected" ).isSameAs (defaultConfig );
93
93
94
94
hrf .setConnectionRequestTimeout (4567 );
@@ -111,7 +111,7 @@ void localSettingsOverrideClientDefaultSettings() throws Exception {
111
111
Configurable configurable = (Configurable ) client ;
112
112
given (configurable .getConfig ()).willReturn (defaultConfig );
113
113
114
- HttpComponentsClientHttpRequestFactory hrf = new HttpComponentsClientHttpRequestFactory (client );
114
+ HttpComponentsClientRequestFactory hrf = new HttpComponentsClientRequestFactory (client );
115
115
hrf .setConnectTimeout (5000 );
116
116
117
117
RequestConfig requestConfig = retrieveRequestConfig (hrf );
@@ -130,7 +130,7 @@ void mergeBasedOnCurrentHttpClient() throws Exception {
130
130
Configurable configurable = (Configurable ) client ;
131
131
given (configurable .getConfig ()).willReturn (defaultConfig );
132
132
133
- HttpComponentsClientHttpRequestFactory hrf = new HttpComponentsClientHttpRequestFactory () {
133
+ HttpComponentsClientRequestFactory hrf = new HttpComponentsClientRequestFactory () {
134
134
@ Override
135
135
public HttpClient getHttpClient () {
136
136
return client ;
@@ -182,7 +182,7 @@ static Stream<HttpMethod> safeHttpMethods() {
182
182
return Stream .of (HttpMethod .GET , HttpMethod .OPTIONS , HttpMethod .TRACE );
183
183
}
184
184
185
- private RequestConfig retrieveRequestConfig (HttpComponentsClientHttpRequestFactory factory ) throws Exception {
185
+ private RequestConfig retrieveRequestConfig (HttpComponentsClientRequestFactory factory ) throws Exception {
186
186
URI uri = URI .create (baseUrl + "/status/ok" );
187
187
HttpComponentsClientHttpRequest request = (HttpComponentsClientHttpRequest )
188
188
factory .createRequest (uri , HttpMethod .GET );
0 commit comments