Fix mock tests

Former-commit-id: 04df491d64
This commit is contained in:
Tour
2025-12-05 06:19:28 +01:00
parent b69571afee
commit 01743dce79
13 changed files with 1460 additions and 1288 deletions

View File

@@ -138,13 +138,13 @@ class ImageProcessingServiceTest {
200.0, "EUR", "https://example.com", null, false)
));
when(mockDb.getImagesForLot(anyInt())).thenReturn(List.of());
when(mockDb.getImagesForLot(anyLong())).thenReturn(List.of());
service.processPendingImages();
// Verify lots were queried
verify(mockDb, times(1)).getAllLots();
verify(mockDb, times(2)).getImagesForLot(anyInt());
verify(mockDb, times(2)).getImagesForLot(anyLong());
}
@Test