Fixed broken test

This commit is contained in:
Risto Lahtela 2020-09-06 11:18:39 +03:00
parent a43c9500a4
commit 78888ff26d
3 changed files with 6 additions and 6 deletions

View File

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

View File

@ -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<Session> 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<Session> player1Sessions = RandomData.randomSessions(serverUUID(), worlds, playerUUID, player2UUID);

View File

@ -109,8 +109,8 @@ class ComparatorTest {
.collect(Collectors.toList());
List<Lang> expected = Arrays.asList(
HelpLang.SERVER,
HelpLang.DB_RESTORE,
HelpLang.SERVER,
HelpLang.SERVERS
);
assertEquals(expected, result);