Skip to content

Add item requests and gateway#3

Merged
LightInTheFire merged 23 commits intomainfrom
add-item-requests-and-gateway
Mar 19, 2026
Merged

Add item requests and gateway#3
LightInTheFire merged 23 commits intomainfrom
add-item-requests-and-gateway

Conversation

@LightInTheFire
Copy link
Copy Markdown
Owner

@LightInTheFire LightInTheFire commented Dec 10, 2025

Добавил реквесты предметов.
Разбил проект на два модуля, запустить все контейнеры можно одним docker compose из корня проекта
МНОГО ТЕСТОВ

@LightInTheFire
Copy link
Copy Markdown
Owner Author

Покройте тестами пожалуйста КАЖДУЮ КОЧКУ спасибо

Copy link
Copy Markdown

@Ivanov-s-tmn Ivanov-s-tmn left a comment

Choose a reason for hiding this comment

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

Илья, привет! Все отлично, но не хватает интеграционных тестов по сервисам (без моков). В ТЗ есть требование реализовать хотя бы по одному интеграционному тесту для одного из методов каждого сервиса

Comment on lines +32 to +39
@Autowired
private UserRepository userRepository;

@Autowired
private ItemRepository itemRepository;

@Autowired
private BookingRepository bookingRepository;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Сторонние зависимости в интеграционных тестах внедрять не стоит, мы должны протестировать взаимодействие с БД конкретного сервиса, поэтому все остальные сущности добавляются в БД для тестов отдельными sql скриптами или через EntityManager/TestEntityManager

Так тесты будут менее зависимы от других сервисов, более стабильны, просты и прогнозируемы

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Хорошо, поправлю, спасибо!

@LightInTheFire LightInTheFire merged commit c67d2c6 into main Mar 19, 2026
2 checks passed
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.

2 participants