rename overloaded methods

This commit is contained in:
Carsten Otto
2021-11-30 16:00:39 +01:00
parent a524628715
commit 5af1e53c34
15 changed files with 72 additions and 72 deletions

View File

@@ -38,7 +38,7 @@ class OnChainCostsControllerTest {
@Test
void getOpenCostsForChannel() throws CostException {
Coins coins = Coins.ofSatoshis(123);
when(onChainCostService.getOpenCosts(CHANNEL_ID)).thenReturn(Optional.of(coins));
when(onChainCostService.getOpenCostsForChannelId(CHANNEL_ID)).thenReturn(Optional.of(coins));
assertThat(onChainCostsController.getOpenCostsForChannel(CHANNEL_ID)).isEqualTo(coins.satoshis());
}
@@ -52,7 +52,7 @@ class OnChainCostsControllerTest {
@Test
void getCloseCostsForChannel() throws CostException {
Coins coins = Coins.ofSatoshis(123);
when(onChainCostService.getCloseCosts(CHANNEL_ID)).thenReturn(Optional.of(coins));
when(onChainCostService.getCloseCostsForChannelId(CHANNEL_ID)).thenReturn(Optional.of(coins));
assertThat(onChainCostsController.getCloseCostsForChannel(CHANNEL_ID)).isEqualTo(coins.satoshis());
}