@@ -177,7 +177,7 @@ public void testDeserializerMethod() throws IOException, CoreApiException {
177177
178178 // verify
179179 assertEquals (coreResponseHandler .handle (context , endpointSetting ,
180- getMockGlobalConfig (), requestBuilder ), "bodyValue" );
180+ getMockGlobalConfig ()), "bodyValue" );
181181 }
182182
183183 @ Test
@@ -195,7 +195,7 @@ public void testDeserializerMethodUsingRawBody() throws IOException, CoreApiExce
195195
196196 // verify
197197 assertEquals (coreResponseHandler .handle (context , endpointSetting ,
198- getMockGlobalConfig (), requestBuilder ), inputStream );
198+ getMockGlobalConfig ()), inputStream );
199199 }
200200
201201
@@ -215,7 +215,7 @@ public void testDeserializerMethodUsingContext() throws IOException, CoreApiExce
215215
216216 // verify
217217 assertEquals (coreResponseHandler .handle (context , endpointSetting ,
218- getMockGlobalConfig (), requestBuilder ).getContext (), model .getContext ());
218+ getMockGlobalConfig ()).getContext (), model .getContext ());
219219 }
220220
221221 @ Test
@@ -230,7 +230,7 @@ public void testContextWithoutDeserializer() throws IOException, CoreApiExceptio
230230
231231 // verify
232232 assertNull (coreResponseHandler .handle (context , endpointSetting ,
233- getMockGlobalConfig (), requestBuilder ));
233+ getMockGlobalConfig ()));
234234 }
235235
236236 @ Test
@@ -245,7 +245,7 @@ public void testDynamicResponseTypeMethod() throws IOException, CoreApiException
245245
246246 // verify
247247 assertEquals (coreResponseHandler .handle (context , endpointSetting ,
248- getMockGlobalConfig (), requestBuilder ), dynamicType );
248+ getMockGlobalConfig ()), dynamicType );
249249 }
250250
251251 @ Test
@@ -263,7 +263,7 @@ public void testApiResponseTypeMethod() throws IOException, CoreApiException {
263263 // verify
264264 assertEquals (
265265 coreResponseHandler .handle (context , endpointSetting ,
266- getMockGlobalConfig (), requestBuilder ).getResult (),
266+ getMockGlobalConfig ()).getResult (),
267267 stringApiResponseType .getResult ());
268268 }
269269
@@ -280,7 +280,7 @@ public void testDynamicApiResponseTypeMethod() throws IOException, CoreApiExcept
280280 // verify
281281 assertEquals (
282282 coreResponseHandler .handle (context , endpointSetting ,
283- getMockGlobalConfig (), requestBuilder ).getResult (),
283+ getMockGlobalConfig ()).getResult (),
284284 dynamicApiResponseType .getResult ());
285285 }
286286
@@ -292,7 +292,7 @@ public void testDefaultTypeMethod() throws IOException, CoreApiException {
292292 when (coreHttpResponse .getStatusCode ()).thenReturn (CREATED_SUCCESS_CODE );
293293 // verify
294294 assertNull (coreResponseHandler .handle (context , endpointSetting ,
295- getMockGlobalConfig (), requestBuilder ));
295+ getMockGlobalConfig ()));
296296 }
297297
298298 @ Test
@@ -307,7 +307,7 @@ public void testNullify404() throws IOException, CoreApiException {
307307
308308 // verify
309309 assertNull (coreResponseHandler .handle (context , endpointSetting ,
310- getMockGlobalConfig (), requestBuilder ));
310+ getMockGlobalConfig ()));
311311 }
312312
313313 @ Test
@@ -320,7 +320,7 @@ public void testNullify404False() throws IOException, CoreApiException {
320320
321321 CoreApiException apiException = assertThrows (CoreApiException .class , () -> {
322322 coreResponseHandler .handle (context , endpointSetting ,
323- getMockGlobalConfig (), requestBuilder );
323+ getMockGlobalConfig ());
324324 });
325325
326326 String expectedMessage = "Not found" ;
@@ -342,19 +342,19 @@ public void testNullableResponseType() throws IOException, CoreApiException {
342342
343343 // verify
344344 assertNull (coreResponseHandler .handle (context , endpointSetting ,
345- getMockGlobalConfig (), requestBuilder ));
345+ getMockGlobalConfig ()));
346346
347347 when (coreHttpResponse .getBody ()).thenReturn ("" );
348348
349349 // verify
350350 assertNull (coreResponseHandler .handle (context , endpointSetting ,
351- getMockGlobalConfig (), requestBuilder ));
351+ getMockGlobalConfig ()));
352352
353353 when (coreHttpResponse .getBody ()).thenReturn (" " );
354354
355355 // verify
356356 assertNull (coreResponseHandler .handle (context , endpointSetting ,
357- getMockGlobalConfig (), requestBuilder ));
357+ getMockGlobalConfig ()));
358358 }
359359
360360 @ Test
@@ -370,20 +370,20 @@ public void testNullableResponseTypeFalse() throws IOException, CoreApiException
370370
371371 // verify
372372 assertEquals (Integer .valueOf (body ), coreResponseHandler .handle (context , endpointSetting ,
373- getMockGlobalConfig (), requestBuilder ));
373+ getMockGlobalConfig ()));
374374
375375 when (coreHttpResponse .getBody ()).thenReturn ("" );
376376
377377 assertThrows (NumberFormatException .class , () -> {
378378 coreResponseHandler .handle (context , endpointSetting ,
379- getMockGlobalConfig (), requestBuilder );
379+ getMockGlobalConfig ());
380380 });
381381
382382 when (coreHttpResponse .getBody ()).thenReturn (" " );
383383
384384 assertThrows (NumberFormatException .class , () -> {
385385 coreResponseHandler .handle (context , endpointSetting ,
386- getMockGlobalConfig (), requestBuilder );
386+ getMockGlobalConfig ());
387387 });
388388 }
389389
@@ -400,7 +400,7 @@ public void testLocalException() throws IOException, CoreApiException {
400400
401401 CoreApiException apiException = assertThrows (CoreApiException .class , () -> {
402402 coreResponseHandler .handle (context , endpointSetting ,
403- getMockGlobalConfig (), requestBuilder );
403+ getMockGlobalConfig ());
404404 });
405405
406406 String expectedMessage = "Forbidden" ;
@@ -423,7 +423,7 @@ public void testDefaultException() throws IOException, CoreApiException {
423423
424424 CoreApiException apiException = assertThrows (CoreApiException .class , () -> {
425425 coreResponseHandler .handle (context , endpointSetting ,
426- getMockGlobalConfig (), requestBuilder );
426+ getMockGlobalConfig ());
427427 });
428428
429429 String expectedMessage = "Invalid response." ;
@@ -449,7 +449,7 @@ public void testDefaultException1() throws IOException, CoreApiException {
449449
450450 CoreApiException apiException = assertThrows (CoreApiException .class , () -> {
451451 coreResponseHandler .handle (context , endpointSetting ,
452- getMockGlobalConfig (), requestBuilder );
452+ getMockGlobalConfig ());
453453 });
454454
455455 String expectedMessage = "Invalid response." ;
@@ -485,7 +485,7 @@ public void testGlobalException() throws IOException, CoreApiException {
485485
486486 GlobalTestException apiException = assertThrows (GlobalTestException .class , () -> {
487487 coreResponseHandler .handle (context , endpointSetting ,
488- getMockGlobalConfig (), requestBuilder );
488+ getMockGlobalConfig ());
489489 });
490490
491491 String expectedMessage = "Bad Request" ;
0 commit comments