mirror of
https://github.com/aljazceru/lnd-manageJ.git
synced 2026-01-26 09:24:41 +01:00
fix: sort in controller, not service
This commit is contained in:
@@ -56,4 +56,11 @@ class WarningsControllerTest {
|
||||
new NodeWithWarningsDto(descriptions2, ALIAS_2, PUBKEY_2)
|
||||
)));
|
||||
}
|
||||
|
||||
@Test
|
||||
void getWarnings_sorted_by_pubkey() {
|
||||
when(nodeWarningsService.getNodeWarnings()).thenReturn(Map.of(NODE_2, NODE_WARNINGS_2, NODE, NODE_WARNINGS));
|
||||
assertThat(warningsController.getWarnings().nodesWithWarnings()).map(NodeWithWarningsDto::pubkey)
|
||||
.containsExactly(PUBKEY, PUBKEY_2);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user