mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-30 21:17:49 +01:00
Fixed broken test
This commit is contained in:
parent
a43c9500a4
commit
78888ff26d
@ -72,7 +72,7 @@ public interface ActivityIndexQueriesTest extends DatabaseTestPreparer {
|
|||||||
// assertEquals(expected, groupings);
|
// assertEquals(expected, groupings);
|
||||||
// }
|
// }
|
||||||
|
|
||||||
@RepeatedTest(3)
|
@RepeatedTest(value = 3, name = "Activity Index calculations match {currentRepetition}/{totalRepetitions}")
|
||||||
default void activityIndexCalculationsMatch() {
|
default void activityIndexCalculationsMatch() {
|
||||||
storeSessions(session -> true);
|
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() {
|
default void activityIndexCalculationsMatchWithMissingData() {
|
||||||
long keepAfter = System.currentTimeMillis() - TimeUnit.DAYS.toMillis(7L);
|
long keepAfter = System.currentTimeMillis() - TimeUnit.DAYS.toMillis(7L);
|
||||||
storeSessions(session -> session.getDate() >= keepAfter && session.getUnsafe(SessionKeys.END) >= keepAfter);
|
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() {
|
default void networkActivityIndexCalculationsMatch() {
|
||||||
storeSessions(session -> true);
|
storeSessions(session -> true);
|
||||||
|
|
||||||
|
@ -265,7 +265,7 @@ public interface SessionQueriesTest extends DatabaseTestPreparer {
|
|||||||
assertEquals(new HashSet<>(Arrays.asList(expected)), result);
|
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() {
|
default void playersTableAndPlayerPagePlaytimeMatches() {
|
||||||
prepareForSessionSave();
|
prepareForSessionSave();
|
||||||
List<Session> player1Sessions = RandomData.randomSessions(serverUUID(), worlds, playerUUID, player2UUID);
|
List<Session> player1Sessions = RandomData.randomSessions(serverUUID(), worlds, playerUUID, player2UUID);
|
||||||
@ -285,7 +285,7 @@ public interface SessionQueriesTest extends DatabaseTestPreparer {
|
|||||||
assertEquals(expected, got);
|
assertEquals(expected, got);
|
||||||
}
|
}
|
||||||
|
|
||||||
@RepeatedTest(3)
|
@RepeatedTest(value = 3, name = "Players table and player page Activity Index calculations match {currentRepetition}/{totalRepetitions}")
|
||||||
default void playersTableAndPlayerPageActivityIndexMatches() {
|
default void playersTableAndPlayerPageActivityIndexMatches() {
|
||||||
prepareForSessionSave();
|
prepareForSessionSave();
|
||||||
List<Session> player1Sessions = RandomData.randomSessions(serverUUID(), worlds, playerUUID, player2UUID);
|
List<Session> player1Sessions = RandomData.randomSessions(serverUUID(), worlds, playerUUID, player2UUID);
|
||||||
|
@ -109,8 +109,8 @@ class ComparatorTest {
|
|||||||
.collect(Collectors.toList());
|
.collect(Collectors.toList());
|
||||||
|
|
||||||
List<Lang> expected = Arrays.asList(
|
List<Lang> expected = Arrays.asList(
|
||||||
HelpLang.SERVER,
|
|
||||||
HelpLang.DB_RESTORE,
|
HelpLang.DB_RESTORE,
|
||||||
|
HelpLang.SERVER,
|
||||||
HelpLang.SERVERS
|
HelpLang.SERVERS
|
||||||
);
|
);
|
||||||
assertEquals(expected, result);
|
assertEquals(expected, result);
|
||||||
|
Loading…
Reference in New Issue
Block a user