diff --git a/web/src/integrationTest/java/de/cotto/lndmanagej/controller/ObjectMapperConfigurationIT.java b/web/src/integrationTest/java/de/cotto/lndmanagej/controller/ObjectMapperConfigurationIT.java index 70b1d371..4c650931 100644 --- a/web/src/integrationTest/java/de/cotto/lndmanagej/controller/ObjectMapperConfigurationIT.java +++ b/web/src/integrationTest/java/de/cotto/lndmanagej/controller/ObjectMapperConfigurationIT.java @@ -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)); } -} \ No newline at end of file +}