SPR-7060 - @ResponseStatus: The reason value is not used.
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user