Refine tests for SPR-14066

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

Issue SPR-14066
master
Rob Winch 9 years ago
parent e2ba477405
commit 411ff8450f
  1. 2
      spring-test/src/test/java/org/springframework/test/web/servlet/htmlunit/MockMvcWebClientBuilderTests.java
  2. 2
      spring-test/src/test/java/org/springframework/test/web/servlet/htmlunit/webdriver/MockMvcHtmlUnitDriverBuilderTests.java

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

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

Loading…
Cancel
Save