Skip to content

Commit d6e56ce

Browse files
committed
Merge branch '5.3.x'
2 parents 148d7ab + cfefcee commit d6e56ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-test/src/test/java/org/springframework/test/web/servlet/samples/standalone/resulthandlers/PrintingResultHandlerIntegrationTests.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,10 @@ void printMvcResultsToWriterWithJsonResponseBodyInterpretedAsUtf8() throws Excep
6868

6969
standaloneSetup(new SimpleController()).build()
7070
// "Hallöchen" is German slang for "hello".
71-
.perform(get("/utf8").accept(MediaType.APPLICATION_JSON).content("Hallöchen, Welt!".getBytes()).characterEncoding(UTF_8))
71+
.perform(get("/utf8").accept(MediaType.APPLICATION_JSON).content("Hallöchen, Welt!".getBytes(UTF_8)).characterEncoding(UTF_8))
7272
.andDo(print(writer))
7373
// "Grüß dich!" is German for "greetings to you".
74-
.andExpect(content().bytes("Grüß dich!".getBytes()));
74+
.andExpect(content().bytes("Grüß dich!".getBytes(UTF_8)));
7575

7676
assertThat(writer).asString()
7777
.contains("Body = Hallöchen, Welt!")

0 commit comments

Comments
 (0)