From 78888ff26d5ad7d3f2e2afd775350bbae48cbb72 Mon Sep 17 00:00:00 2001 From: Risto Lahtela <24460436+Rsl1122@users.noreply.github.com> Date: Sun, 6 Sep 2020 11:18:39 +0300 Subject: [PATCH] Fixed broken test --- .../storage/database/queries/ActivityIndexQueriesTest.java | 6 +++--- .../plan/storage/database/queries/SessionQueriesTest.java | 4 ++-- .../plan/utilities/comparators/ComparatorTest.java | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Plan/common/src/test/java/com/djrapitops/plan/storage/database/queries/ActivityIndexQueriesTest.java b/Plan/common/src/test/java/com/djrapitops/plan/storage/database/queries/ActivityIndexQueriesTest.java index 9741283f6..8ba5e71bf 100644 --- a/Plan/common/src/test/java/com/djrapitops/plan/storage/database/queries/ActivityIndexQueriesTest.java +++ b/Plan/common/src/test/java/com/djrapitops/plan/storage/database/queries/ActivityIndexQueriesTest.java @@ -72,7 +72,7 @@ public interface ActivityIndexQueriesTest extends DatabaseTestPreparer { // assertEquals(expected, groupings); // } - @RepeatedTest(3) + @RepeatedTest(value = 3, name = "Activity Index calculations match {currentRepetition}/{totalRepetitions}") default void activityIndexCalculationsMatch() { storeSessions(session -> true); @@ -118,7 +118,7 @@ public interface ActivityIndexQueriesTest extends DatabaseTestPreparer { }); } - @RepeatedTest(3) + @RepeatedTest(value = 3, name = "Activity Index calculations match with missing data {currentRepetition}/{totalRepetitions}") default void activityIndexCalculationsMatchWithMissingData() { long keepAfter = System.currentTimeMillis() - TimeUnit.DAYS.toMillis(7L); storeSessions(session -> session.getDate() >= keepAfter && session.getUnsafe(SessionKeys.END) >= keepAfter); @@ -165,7 +165,7 @@ public interface ActivityIndexQueriesTest extends DatabaseTestPreparer { }); } - @RepeatedTest(3) + @RepeatedTest(value = 3, name = "Network Activity Index calculations match {currentRepetition}/{totalRepetitions}") default void networkActivityIndexCalculationsMatch() { storeSessions(session -> true); diff --git a/Plan/common/src/test/java/com/djrapitops/plan/storage/database/queries/SessionQueriesTest.java b/Plan/common/src/test/java/com/djrapitops/plan/storage/database/queries/SessionQueriesTest.java index ffc62b6ef..682525e52 100644 --- a/Plan/common/src/test/java/com/djrapitops/plan/storage/database/queries/SessionQueriesTest.java +++ b/Plan/common/src/test/java/com/djrapitops/plan/storage/database/queries/SessionQueriesTest.java @@ -265,7 +265,7 @@ public interface SessionQueriesTest extends DatabaseTestPreparer { assertEquals(new HashSet<>(Arrays.asList(expected)), result); } - @RepeatedTest(3) + @RepeatedTest(value = 3, name = "Players table and Player page playtimes match {currentRepetition}/{totalRepetitions}") default void playersTableAndPlayerPagePlaytimeMatches() { prepareForSessionSave(); List player1Sessions = RandomData.randomSessions(serverUUID(), worlds, playerUUID, player2UUID); @@ -285,7 +285,7 @@ public interface SessionQueriesTest extends DatabaseTestPreparer { assertEquals(expected, got); } - @RepeatedTest(3) + @RepeatedTest(value = 3, name = "Players table and player page Activity Index calculations match {currentRepetition}/{totalRepetitions}") default void playersTableAndPlayerPageActivityIndexMatches() { prepareForSessionSave(); List player1Sessions = RandomData.randomSessions(serverUUID(), worlds, playerUUID, player2UUID); diff --git a/Plan/common/src/test/java/com/djrapitops/plan/utilities/comparators/ComparatorTest.java b/Plan/common/src/test/java/com/djrapitops/plan/utilities/comparators/ComparatorTest.java index cef325556..1b1b29d5c 100644 --- a/Plan/common/src/test/java/com/djrapitops/plan/utilities/comparators/ComparatorTest.java +++ b/Plan/common/src/test/java/com/djrapitops/plan/utilities/comparators/ComparatorTest.java @@ -109,8 +109,8 @@ class ComparatorTest { .collect(Collectors.toList()); List expected = Arrays.asList( - HelpLang.SERVER, HelpLang.DB_RESTORE, + HelpLang.SERVER, HelpLang.SERVERS ); assertEquals(expected, result);