forked from Sanders/TelegaBot
test: Add BookCommonService import to BookCreationServiceImplTest
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user