mirror of
https://github.com/aljazceru/lnd-manageJ.git
synced 2026-01-22 23:44:21 +01:00
add tests
This commit is contained in:
committed by
Carsten Otto
parent
a9146c198a
commit
ddf3d75696
@@ -46,7 +46,7 @@ class DashboardControllerIT {
|
||||
void dashboard() throws Exception {
|
||||
OpenChannelDto channel = OPEN_CHANNEL_DTO;
|
||||
NodeDto node = new NodeDto(channel.remotePubkey().toString(), channel.remoteAlias(), true);
|
||||
when(this.pageService.dashboard()).thenReturn(
|
||||
when(pageService.dashboard()).thenReturn(
|
||||
new DashboardPage(List.of(channel), List.of(node), new StatusModel(true, 1, NONE))
|
||||
);
|
||||
mockMvc.perform(get("/")).andExpect(status().isOk());
|
||||
|
||||
Reference in New Issue
Block a user