|
|
|
|
@ -144,7 +144,7 @@ class DefaultResponseErrorHandlerTests {
@@ -144,7 +144,7 @@ class DefaultResponseErrorHandlerTests {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Test // SPR-16108
|
|
|
|
|
public void hasErrorForUnknownStatusCode() throws Exception { |
|
|
|
|
void hasErrorForUnknownStatusCode() throws Exception { |
|
|
|
|
HttpHeaders headers = new HttpHeaders(); |
|
|
|
|
headers.setContentType(MediaType.TEXT_PLAIN); |
|
|
|
|
|
|
|
|
|
@ -156,7 +156,7 @@ class DefaultResponseErrorHandlerTests {
@@ -156,7 +156,7 @@ class DefaultResponseErrorHandlerTests {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Test // SPR-9406
|
|
|
|
|
public void handleErrorUnknownStatusCode() throws Exception { |
|
|
|
|
void handleErrorUnknownStatusCode() throws Exception { |
|
|
|
|
HttpHeaders headers = new HttpHeaders(); |
|
|
|
|
headers.setContentType(MediaType.TEXT_PLAIN); |
|
|
|
|
|
|
|
|
|
@ -169,7 +169,7 @@ class DefaultResponseErrorHandlerTests {
@@ -169,7 +169,7 @@ class DefaultResponseErrorHandlerTests {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Test // SPR-17461
|
|
|
|
|
public void hasErrorForCustomClientError() throws Exception { |
|
|
|
|
void hasErrorForCustomClientError() throws Exception { |
|
|
|
|
HttpHeaders headers = new HttpHeaders(); |
|
|
|
|
headers.setContentType(MediaType.TEXT_PLAIN); |
|
|
|
|
|
|
|
|
|
@ -209,7 +209,7 @@ class DefaultResponseErrorHandlerTests {
@@ -209,7 +209,7 @@ class DefaultResponseErrorHandlerTests {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Test // SPR-17461
|
|
|
|
|
public void hasErrorForCustomServerError() throws Exception { |
|
|
|
|
void hasErrorForCustomServerError() throws Exception { |
|
|
|
|
HttpHeaders headers = new HttpHeaders(); |
|
|
|
|
headers.setContentType(MediaType.TEXT_PLAIN); |
|
|
|
|
|
|
|
|
|
@ -249,7 +249,7 @@ class DefaultResponseErrorHandlerTests {
@@ -249,7 +249,7 @@ class DefaultResponseErrorHandlerTests {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Test // SPR-16604
|
|
|
|
|
public void bodyAvailableAfterHasErrorForUnknownStatusCode() throws Exception { |
|
|
|
|
void bodyAvailableAfterHasErrorForUnknownStatusCode() throws Exception { |
|
|
|
|
HttpHeaders headers = new HttpHeaders(); |
|
|
|
|
headers.setContentType(MediaType.TEXT_PLAIN); |
|
|
|
|
TestByteArrayInputStream body = new TestByteArrayInputStream("Hello World".getBytes(UTF_8)); |
|
|
|
|
|