mirror of
https://github.com/aljazceru/lnd-manageJ.git
synced 2026-01-31 11:44:33 +01:00
get all channels for peer
This commit is contained in:
@@ -80,6 +80,13 @@ class LegacyControllerIT {
|
||||
.andExpect(content().string(CHANNEL_ID + "\n" + CHANNEL_ID_3));
|
||||
}
|
||||
|
||||
@Test
|
||||
void getAllChannelIds_for_peer() throws Exception {
|
||||
when(channelService.getAllChannelsWith(PUBKEY)).thenReturn(Set.of(LOCAL_OPEN_CHANNEL, CLOSED_CHANNEL_3));
|
||||
mockMvc.perform(get(PUBKEY_BASE + "/all-channels"))
|
||||
.andExpect(content().string(CHANNEL_ID + "\n" + CHANNEL_ID_3));
|
||||
}
|
||||
|
||||
@Test
|
||||
void getOpenChannelIds() throws Exception {
|
||||
when(channelService.getOpenChannels()).thenReturn(Set.of(LOCAL_OPEN_CHANNEL, LOCAL_OPEN_CHANNEL_3));
|
||||
|
||||
Reference in New Issue
Block a user