SPR-7060 - @ResponseStatus: The reason value is not used.

This commit is contained in:
Arjen Poutsma
2010-04-02 08:39:26 +00:00
parent 580dc8e72a
commit 8a1a23af83
2 changed files with 11 additions and 2 deletions

View File

@@ -1307,6 +1307,7 @@ public class ServletAnnotationControllerTests {
servlet.service(request, response);
assertEquals("something", response.getContentAsString());
assertEquals(201, response.getStatus());
assertEquals("It's alive!", response.getErrorMessage());
}
@Test
@@ -2382,7 +2383,7 @@ public class ServletAnnotationControllerTests {
public static class ResponseStatusController {
@RequestMapping("/something")
@ResponseStatus(HttpStatus.CREATED)
@ResponseStatus(value = HttpStatus.CREATED, reason = "It's alive!")
public void handle(Writer writer) throws IOException {
writer.write("something");
}