Commit e90a394 Ayzat Murtazin
committed
1 parent a06bd92 commit e90a394 Copy full SHA for e90a394
File tree 2 files changed +2
-2
lines changed
src/test/java/ru/yandex/practicum/filmorate/storage
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -303,7 +303,7 @@ void testDeleteFilm() {
303
303
void testDeleteNotExistingUser () {
304
304
int filmId = 999 ;
305
305
String formattedResponse = String .format ("Фильм с id '%s' не найден." , filmId );
306
- NotFoundException e = assertThrows (NotFoundException .class , () -> filmDbStorage .findById (filmId ));
306
+ NotFoundException e = assertThrows (NotFoundException .class , () -> filmDbStorage .remove (filmId ));
307
307
assertEquals (formattedResponse , e .getMessage ());
308
308
}
309
309
Original file line number Diff line number Diff line change @@ -331,7 +331,7 @@ void testDeleteUser() {
331
331
void testDeleteNotExistingUser () {
332
332
int userId = 999 ;
333
333
String formattedResponse = String .format ("Пользователь с id '%s' не найден." , userId );
334
- NotFoundException e = assertThrows (NotFoundException .class , () -> userStorage .findById (userId ));
334
+ NotFoundException e = assertThrows (NotFoundException .class , () -> userStorage .remove (userId ));
335
335
assertEquals (formattedResponse , e .getMessage ());
336
336
}
337
337
}
You can’t perform that action at this time.
0 commit comments