mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-11 14:50:56 +00:00
a first careful test case for storing/loading RegattaLeaderboard through RacingEventService
This commit is contained in:
1 parent
6dbe4903f7
commit
f7d897f6e7
9 files changed
+76
-46
No files matched your search
+4
-4
@@ -243,7 +243,7 @@ public class RacingEventServiceImpl implements RacingEventService, RegattaListen
|
||||
}
|
||||
leaderboardsByName.put(name, result);
|
||||
}
|
||||
mongoObjectFactory.storeFlexibleLeaderboard(result);
|
||||
mongoObjectFactory.storeLeaderboard(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -260,7 +260,7 @@ public class RacingEventServiceImpl implements RacingEventService, RegattaListen
|
||||
}
|
||||
leaderboardsByName.put(result.getName(), result);
|
||||
}
|
||||
mongoObjectFactory.storeRegattaLeaderboard(result);
|
||||
mongoObjectFactory.storeLeaderboard(result);
|
||||
} else {
|
||||
logger.warning("Cannot find regatta "+regattaIdentifier+". Hence, cannot create regatta leaderboard for it.");
|
||||
}
|
||||
@@ -346,13 +346,13 @@ public class RacingEventServiceImpl implements RacingEventService, RegattaListen
|
||||
|
||||
@Override
|
||||
public void updateStoredFlexibleLeaderboard(FlexibleLeaderboard leaderboard) {
|
||||
mongoObjectFactory.storeFlexibleLeaderboard(leaderboard);
|
||||
mongoObjectFactory.storeLeaderboard(leaderboard);
|
||||
syncGroupsAfterLeaderboardChange(leaderboard, true);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateStoredRegattaLeaderboard(RegattaLeaderboard leaderboard) {
|
||||
mongoObjectFactory.storeRegattaLeaderboard(leaderboard);
|
||||
mongoObjectFactory.storeLeaderboard(leaderboard);
|
||||
syncGroupsAfterLeaderboardChange(leaderboard, true);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user