Browse Source

Fixing test

pull/23217/head
Arjen Poutsma 15 years ago
parent
commit
c812cd370b
  1. 2
      org.springframework.web/src/test/java/org/springframework/web/client/RestTemplateTests.java

2
org.springframework.web/src/test/java/org/springframework/web/client/RestTemplateTests.java

@ -116,6 +116,8 @@ public class RestTemplateTests { @@ -116,6 +116,8 @@ public class RestTemplateTests {
expect(requestFactory.createRequest(new URI("http://example.com"), HttpMethod.GET)).andReturn(request);
expect(request.execute()).andReturn(response);
expect(errorHandler.hasError(response)).andReturn(true);
expect(response.getStatusCode()).andReturn(HttpStatus.INTERNAL_SERVER_ERROR);
expect(response.getStatusText()).andReturn("Internal Server Error");
errorHandler.handleError(response);
expectLastCall().andThrow(new HttpServerErrorException(HttpStatus.INTERNAL_SERVER_ERROR));
response.close();

Loading…
Cancel
Save