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:
parent
e2ba477405
commit
411ff8450f
|
|
@ -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…
Reference in New Issue