test: Add BookCommonService import to BookCreationServiceImplTest

This commit is contained in:
2025-02-09 20:18:22 +03:00
committed by Sanders
parent 84ec79d444
commit e307278e4b
@@ -11,6 +11,7 @@ import ru.cathub.telegabot.model.BookCreationCache;
import ru.cathub.telegabot.model.BotUser;
import ru.cathub.telegabot.repository.BookRepository;
import ru.cathub.telegabot.service.BookCacheService;
import ru.cathub.telegabot.service.BookCommonService;
import ru.cathub.telegabot.service.TelegramClientService;
import static org.junit.jupiter.api.Assertions.*;
@@ -41,6 +42,7 @@ class BookCreationServiceImplTest {
void handleNewAddRequest_ShouldInitializeCache() {
when(bookCacheService.updateCache(anyLong(), any(BookCreationCache.class)))
.thenReturn(testCache);
bookCreationService.handleNewAddRequest(testUser, ADD_BOOK);