pretty-print channels

This commit is contained in:
Carsten Otto
2021-11-12 16:30:36 +01:00
parent bc55943f9d
commit def458ebbb
5 changed files with 56 additions and 2 deletions

View File

@@ -83,6 +83,13 @@ class LegacyControllerIT {
.andExpect(content().string(CHANNEL_ID_COMPACT + "\n" + CHANNEL_ID_COMPACT_3));
}
@Test
void getOpenChannelIdsPretty() throws Exception {
when(channelService.getOpenChannels()).thenReturn(Set.of(LOCAL_CHANNEL, LOCAL_CHANNEL_3));
mockMvc.perform(get("/legacy/open-channels/pretty"))
.andExpect(status().isOk());
}
@Test
void isSyncedToChain_true() throws Exception {
when(ownNodeService.isSyncedToChain()).thenReturn(true);