Merge branch '5.3.x'

This commit is contained in:
Stephane Nicoll 2022-01-13 08:39:12 +01:00
commit d6e56ce327
1 changed files with 2 additions and 2 deletions

View File

@ -68,10 +68,10 @@ class PrintingResultHandlerIntegrationTests {
standaloneSetup(new SimpleController()).build()
// "Hallöchen" is German slang for "hello".
.perform(get("/utf8").accept(MediaType.APPLICATION_JSON).content("Hallöchen, Welt!".getBytes()).characterEncoding(UTF_8))
.perform(get("/utf8").accept(MediaType.APPLICATION_JSON).content("Hallöchen, Welt!".getBytes(UTF_8)).characterEncoding(UTF_8))
.andDo(print(writer))
// "Grüß dich!" is German for "greetings to you".
.andExpect(content().bytes("Grüß dich!".getBytes()));
.andExpect(content().bytes("Grüß dich!".getBytes(UTF_8)));
assertThat(writer).asString()
.contains("Body = Hallöchen, Welt!")