mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-16 17:21:00 +00:00
Fix test case, behavior is different from what was tested
This commit is contained in:
1 parent
433a3c0dd0
commit
e753390b0f
1 file changed
+3
-5
+3
-5
@@ -179,11 +179,9 @@ public class CompetitorProviderCacheInvalidationTest extends AbstractLeaderboard
|
||||
for (Competitor c : compLists[1]) {
|
||||
raceLog.add(new RaceLogRegisterCompetitorEventImpl(MillisecondsTimePoint.now(), new LogEventAuthorImpl("Me", 0), 1, c));
|
||||
}
|
||||
//expected are all competitors, because the getAllCopmetitors method is called
|
||||
//this includes competitors Registered in the RaceLogs, for which the RaceLog
|
||||
//is denoted with the RaceLogUseCompetitorsFromRaceLogEvent as well as the competitors in the RegattaLog
|
||||
Set<Competitor> expected = new HashSet<>(compLists[0]);
|
||||
expected.addAll(compLists[1]);
|
||||
//expected are only the competitors in the RaceLog, because only one RaceColumn is
|
||||
//registered, which has the competitors registered in the RaceLog.
|
||||
Set<Competitor> expected = new HashSet<>(compLists[1]);
|
||||
Set<Competitor> actual = new HashSet<>();
|
||||
Util.addAll(competitorProviderFlexibleLeaderboard.getAllCompetitors(), actual);
|
||||
assertEquals(expected, actual);
|
||||
|
||||
Reference in new issue
Block a user