commit
3c8f4081ed
|
@ -31,10 +31,6 @@ public class SpringIntegrationTest {
|
||||||
final HeaderSettingRequestCallback requestCallback = new HeaderSettingRequestCallback(headers);
|
final HeaderSettingRequestCallback requestCallback = new HeaderSettingRequestCallback(headers);
|
||||||
final ResponseResultErrorHandler errorHandler = new ResponseResultErrorHandler();
|
final ResponseResultErrorHandler errorHandler = new ResponseResultErrorHandler();
|
||||||
|
|
||||||
if (restTemplate == null) {
|
|
||||||
restTemplate = new RestTemplate();
|
|
||||||
}
|
|
||||||
|
|
||||||
restTemplate.setErrorHandler(errorHandler);
|
restTemplate.setErrorHandler(errorHandler);
|
||||||
latestResponse = restTemplate.execute(url, HttpMethod.GET, requestCallback, new ResponseExtractor<ResponseResults>() {
|
latestResponse = restTemplate.execute(url, HttpMethod.GET, requestCallback, new ResponseExtractor<ResponseResults>() {
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue