Polish
This commit is contained in:
parent
eb84547894
commit
1d5bd8ef35
|
@ -33,6 +33,7 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.
|
||||||
*/
|
*/
|
||||||
public class FormContentTests {
|
public class FormContentTests {
|
||||||
|
|
||||||
|
|
||||||
@Test // SPR-15753
|
@Test // SPR-15753
|
||||||
public void formContentIsNotDuplicated() throws Exception {
|
public void formContentIsNotDuplicated() throws Exception {
|
||||||
|
|
||||||
|
@ -42,12 +43,11 @@ public class FormContentTests {
|
||||||
|
|
||||||
mockMvc.perform(put("/").content("d1=a&d2=s").contentType(MediaType.APPLICATION_FORM_URLENCODED))
|
mockMvc.perform(put("/").content("d1=a&d2=s").contentType(MediaType.APPLICATION_FORM_URLENCODED))
|
||||||
.andExpect(content().string("d1:a, d2:s."));
|
.andExpect(content().string("d1:a, d2:s."));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@RestController
|
@RestController
|
||||||
public class Spr15753Controller {
|
private static class Spr15753Controller {
|
||||||
|
|
||||||
@PutMapping
|
@PutMapping
|
||||||
public String test(Data d) {
|
public String test(Data d) {
|
||||||
|
@ -55,7 +55,7 @@ public class FormContentTests {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public class Data {
|
private static class Data {
|
||||||
|
|
||||||
private String d1;
|
private String d1;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue