|
|
@ -25,7 +25,13 @@ class LeaderboardTest { |
|
|
|
} |
|
|
|
|
|
|
|
private static Stream<Arguments> testCasesForGetTop10Players() { |
|
|
|
return Stream.of(Arguments.of("EmptyListReturnsEmptyArray", List.of(), "TestPlayer", new Player[] {null, null, null, null, null, null, null, null, null, null})); |
|
|
|
return Stream.of(Arguments.of("EmptyListReturnsEmptyArray", List.of(), "TestPlayer", new Player[] {null, null, null, null, null, null, null, null, null, null}), |
|
|
|
Arguments.of("SortedListWithLessThan10ElementsReturnsListAsArray", |
|
|
|
List.of(new Player("Eins", 80), new Player("Zwei", 70), new Player("Drei", 60), new Player("Vier", 50), |
|
|
|
new Player("Fuenf", 40), new Player("Sechs", 30), new Player("Sieben", 20), new Player("Acht", 10)), |
|
|
|
"TestPlayer", |
|
|
|
new Player[] {new Player("Eins", 80), new Player("Zwei", 70), new Player("Drei", 60), new Player("Vier", 50), |
|
|
|
new Player("Fuenf", 40), new Player("Sechs", 30), new Player("Sieben", 20), new Player("Acht", 10), null, null})); |
|
|
|
} |
|
|
|
|
|
|
|
} |