-
Notifications
You must be signed in to change notification settings - Fork 0
Add item requests #7
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?
Conversation
|
Не знаю как обойти ошибку UnfinishedStubbingException в BookingServiceTest, погуглила, но никакого решения не нашла |
TyutterinYakov
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.
src/main/java/ru/practicum/shareit/request/dto/ItemRequestDto.java
Outdated
Show resolved
Hide resolved
src/main/java/ru/practicum/shareit/item/service/ItemServiceImpl.java
Outdated
Show resolved
Hide resolved
src/main/java/ru/practicum/shareit/request/service/RequestServiceImpl.java
Outdated
Show resolved
Hide resolved
src/main/java/ru/practicum/shareit/request/service/RequestServiceImpl.java
Outdated
Show resolved
Hide resolved
src/main/java/ru/practicum/shareit/request/service/RequestServiceImpl.java
Outdated
Show resolved
Hide resolved
TyutterinYakov
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.
Добрый день! Поздравляю с успешной сдачей спринта! Отметил еще парочку мелких недочетов, но думаю, что ты справишься с ними вне ревью! Успехов в обучении и прекрасного дня!🌅🥳
| RequestDTOWithItems itemRequestDtoResult; | ||
| List<ItemDTO> itemsToReturn; | ||
| if (!items.isEmpty()) { | ||
| itemsToReturn = items.get(request) |
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.
В данном случае следует использовать getOrDefault, так как не у всех ItemRequest гарантированно будут предметы, из-за чего может возникнуть NPE

No description provided.