-
Notifications
You must be signed in to change notification settings - Fork 0
Task4 #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?
Task4 #4
Conversation
Alexandr056
left a comment
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.
нет следов кафки…
| @Autowired | ||
| private TaskRepository repository; | ||
|
|
||
| private Long savedTaskId; |
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 PostgresContainer { | ||
|
|
||
| @Container | ||
| public static PostgreSQLContainer<?> postgres = new PostgreSQLContainer<>("postgres:16"); |
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.
это можно было сделать 1 строкой в yml
| private KafkaTaskProducer kafkaTaskProducer; | ||
|
|
||
| @Mock | ||
| private MainMapper mapper; |
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.
если это мок, то что тестировать? итоговый результат уже заготовлен?…
No description provided.