-
Notifications
You must be signed in to change notification settings - Fork 0
Add database #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Add database #4
Conversation
|
|
||
| @Service | ||
| @Slf4j | ||
| public class FilmService { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
в сервисах необходимо больше логирования, логирование всех операций с сущностями
| public class FilmDbStorage implements FilmStorage { | ||
|
|
||
| @Autowired | ||
| private JdbcTemplate jdbcTemplate; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
инъекции через поля не нужно делать, сделай как в остальных через конструктор
|
|
||
|
|
||
| @Test | ||
| void testCreateAndFindUser() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
с тестами необходима доработка. Есть некоторое соглашение по наименованию тестовых методов. Их принято называть по схеме какойМетодТестируемОжидаемыйРезультат и не используем слово test
| } | ||
| } | ||
|
|
||
| //package ru.yandex.practicum.filmorate; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
не оставляй закомментированный код в проекте. Если эти тесты потеряли актуальность, то удали или исправь чтобы работали
…mplate, исправлены имена тестов, убран закомментированный код
…mplate, исправлены имена тестов, убран закомментированный код
…mplate, исправлены имена тестов, убран закомментированный код
…mplate, исправлены имена тестов, убран закомментированный код
No description provided.