use text block in test

This commit is contained in:
Carsten Otto
2022-05-12 22:46:20 +02:00
parent d8725b08a5
commit 06b9061433

View File

@@ -40,7 +40,11 @@ class ObjectMapperConfigurationIT {
@Test
void output_is_pretty_printed() throws Exception {
when(channelService.getOpenChannels()).thenReturn(Set.of(LOCAL_OPEN_CHANNEL));
String expectedString = """
{
"channels" : [ "712345x123x1" ]
}""";
mockMvc.perform(get(PREFIX + "/open-channels/"))
.andExpect(content().string("{\n \"channels\" : [ \"712345x123x1\" ]\n}"));
.andExpect(content().string(expectedString));
}
}
}