mirror of
https://github.com/aljazceru/lnd-manageJ.git
synced 2026-01-21 23:14:27 +01:00
add incoming-fee-rate and outgoing-fee-rate endpoints
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
package de.cotto.lndmanagej.controller;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import static de.cotto.lndmanagej.model.ChannelIdFixtures.CHANNEL_ID;
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
class ChannelIdConverterTest {
|
||||
@Test
|
||||
void convert() {
|
||||
assertThat(new ChannelIdConverter().convert(CHANNEL_ID.toString())).isEqualTo(CHANNEL_ID);
|
||||
}
|
||||
|
||||
@Test
|
||||
void convert_from_compact_form_with_x() {
|
||||
assertThat(new ChannelIdConverter().convert("712345x123x1")).isEqualTo(CHANNEL_ID);
|
||||
}
|
||||
|
||||
@Test
|
||||
void convert_from_compact_form() {
|
||||
assertThat(new ChannelIdConverter().convert("712345:123:1")).isEqualTo(CHANNEL_ID);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user