Public Access
refactor(library): auditor fields only through applyCorrection
This commit is contained in:
1 parent
79d7bf17f2
commit
1abc03d2c1
7 files changed
+30
-18
No files matched your search
+1
-3
@@ -107,9 +107,7 @@ class LibraryControllerAchievementsTest extends AbstractIntegrationTest {
|
||||
game(70L, 8, null, true); // unlocks never fetched
|
||||
game(80L, 10, 12, true); // schema lost achievements, still perfect
|
||||
game(90L, 6, 0, true); // not started
|
||||
SteamGame repaired = steamGameRepository.findById(20L).orElseThrow();
|
||||
repaired.setImageUrl(REPAIRED_COVER);
|
||||
steamGameRepository.save(repaired);
|
||||
steamGameRepository.setImageUrl(20L, REPAIRED_COVER);
|
||||
steamGameRepository.save(new SteamGame(95L, "Game 95", null, Instant.now()));
|
||||
UserGame removed = new UserGame(USER_ID, 95L, 60, Instant.now(), Instant.now());
|
||||
removed.setRemovedAt(Instant.now());
|
||||
|
||||
@@ -53,8 +53,7 @@ class LibraryControllerActivityTest extends AbstractIntegrationTest {
|
||||
void seed() {
|
||||
userGameRepository.deleteAll();
|
||||
jdbc.update("delete from user_game_playtime_day");
|
||||
SteamGame repairedPortal = new SteamGame(620L, "Portal 2", null, Instant.now());
|
||||
repairedPortal.setImageUrl(REPAIRED_COVER);
|
||||
SteamGame repairedPortal = new SteamGame(620L, "Portal 2", null, REPAIRED_COVER, Instant.now());
|
||||
steamGameRepository.saveAll(List.of(
|
||||
new SteamGame(220L, "Half-Life 2", null, Instant.now()),
|
||||
repairedPortal,
|
||||
|
||||
@@ -136,8 +136,7 @@ class ImageRepairServiceTest extends AbstractUnitTest {
|
||||
@Test
|
||||
void repairNightly_ChecksTheStoredRepairFirst() {
|
||||
due(row(620L, ImageKind.COVER, Instant.now()));
|
||||
SteamGame game = new SteamGame(620L, "Portal 2", null, Instant.now());
|
||||
game.setImageUrl(HASHED_620);
|
||||
SteamGame game = new SteamGame(620L, "Portal 2", null, HASHED_620, Instant.now());
|
||||
when(steamGameRepository.findAllById(List.of(620L))).thenReturn(List.of(game));
|
||||
when(steamCdnService.isAvailable(HASHED_620)).thenReturn(true);
|
||||
|
||||
|
||||
Reference in new issue
Block a user