add tests

This commit is contained in:
Carsten Otto
2022-05-10 22:10:14 +02:00
committed by Carsten Otto
parent a9146c198a
commit ddf3d75696
4 changed files with 108 additions and 19 deletions

View File

@@ -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());