mirror of
https://github.com/aljazceru/lnd-manageJ.git
synced 2026-01-20 06:24:28 +01:00
add tests
This commit is contained in:
committed by
Carsten Otto
parent
da0a30af8d
commit
63b3ef0e4d
@@ -56,6 +56,16 @@ class OpenChannelDtoTest {
|
||||
assertThat(dtoWithBalance(balanceInformation).getRatio()).isEqualTo(" | · · · · · · · · · · · · · · · · · · ·");
|
||||
}
|
||||
|
||||
@Test
|
||||
void formatInbound() {
|
||||
assertThat(OPEN_CHANNEL_DTO.formatInbound()).isEqualTo("123");
|
||||
}
|
||||
|
||||
@Test
|
||||
void formatOutbound() {
|
||||
assertThat(OPEN_CHANNEL_DTO.formatOutbound()).isEqualTo("1,000");
|
||||
}
|
||||
|
||||
private OpenChannelDto dtoWithBalance(BalanceInformation balanceInformation) {
|
||||
return new OpenChannelDto(
|
||||
CHANNEL_ID,
|
||||
|
||||
Reference in New Issue
Block a user