Refine tests for SPR-14066

Explicitly define the response type as text/plain to avoid content type
confusion.

Issue SPR-14066
This commit is contained in:
Rob Winch 2016-03-18 13:24:10 -05:00
parent e2ba477405
commit 411ff8450f
2 changed files with 2 additions and 2 deletions

View File

@ -139,7 +139,7 @@ public class MockMvcWebClientBuilderTests {
@RestController
static class CookieController {
@RequestMapping("/")
@RequestMapping(value="/", produces="text/plain")
public String cookie(@CookieValue("cookie") String cookie) {
return cookie;
}

View File

@ -158,7 +158,7 @@ public class MockMvcHtmlUnitDriverBuilderTests {
@RestController
static class CookieController {
@RequestMapping("/")
@RequestMapping(value="/", produces="text/plain")
public String cookie(@CookieValue("cookie") String cookie) {
return cookie;
}