Skip to content

Conversation

@drewandrewd
Copy link
Owner

No description provided.

Copy link
Collaborator

@Alexandr056 Alexandr056 left a 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;
Copy link
Collaborator

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");
Copy link
Collaborator

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;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

если это мок, то что тестировать? итоговый результат уже заготовлен?…

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants