fix thumbnail missing-file test to assert ClassPathResource (#3121)

This commit is contained in:
ACX
2026-02-28 14:56:11 -07:00
committed by GitHub
parent 7decb9947b
commit 0c5c22ab0c
@@ -271,10 +271,10 @@ class BookServiceTest {
}
@Test
void getBookThumbnail_fileMissing_returnsDefault() throws Exception {
void getBookThumbnail_fileMissing_returnsDefault() {
when(fileService.getThumbnailFile(1L)).thenReturn("/tmp/nonexistent.jpg");
Resource res = bookService.getBookThumbnail(1L);
assertTrue(res instanceof UrlResource);
assertTrue(res instanceof ClassPathResource);
}
@Test