mirror of
https://github.com/aljazceru/lnd-manageJ.git
synced 2026-01-21 15:04:22 +01:00
get available remote balance
This commit is contained in:
@@ -148,4 +148,12 @@ class LegacyControllerIT {
|
||||
mockMvc.perform(get(CHANNEL_BASE + "/available-local-balance"))
|
||||
.andExpect(content().string(String.valueOf(availableBalance.satoshis())));
|
||||
}
|
||||
|
||||
@Test
|
||||
void getAvailableRemoteBalance() throws Exception {
|
||||
Coins availableBalance = Coins.ofSatoshis(999);
|
||||
when(balanceService.getAvailableRemoteBalance(CHANNEL_ID)).thenReturn(availableBalance);
|
||||
mockMvc.perform(get(CHANNEL_BASE + "/available-remote-balance"))
|
||||
.andExpect(content().string(String.valueOf(availableBalance.satoshis())));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user