remove synced-to-chain from legacy controller

This commit is contained in:
Carsten Otto
2021-11-22 17:08:31 +01:00
parent 4a245e15f5
commit 62fabe7369
3 changed files with 0 additions and 43 deletions

View File

@@ -6,7 +6,6 @@ import de.cotto.lndmanagej.service.BalanceService;
import de.cotto.lndmanagej.service.ChannelService;
import de.cotto.lndmanagej.service.FeeService;
import de.cotto.lndmanagej.service.NodeService;
import de.cotto.lndmanagej.service.OwnNodeService;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest;
@@ -51,9 +50,6 @@ class LegacyControllerIT {
@MockBean
private ChannelService channelService;
@MockBean
private OwnNodeService ownNodeService;
@MockBean
private FeeService feeService;
@@ -114,18 +110,6 @@ class LegacyControllerIT {
.andExpect(content().string(CHANNEL_ID + "\n" + CHANNEL_ID_3));
}
@Test
void isSyncedToChain_true() throws Exception {
when(ownNodeService.isSyncedToChain()).thenReturn(true);
mockMvc.perform(get("/legacy/synced-to-chain")).andExpect(content().string("true"));
}
@Test
void isSyncedToChain_false() throws Exception {
when(ownNodeService.isSyncedToChain()).thenReturn(false);
mockMvc.perform(get("/legacy/synced-to-chain")).andExpect(content().string("false"));
}
@Test
void getPeerPubkeys() throws Exception {
when(channelService.getOpenChannels()).thenReturn(Set.of(LOCAL_OPEN_CHANNEL, LOCAL_OPEN_CHANNEL_TO_NODE_3));