-
Notifications
You must be signed in to change notification settings - Fork 1
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
Feature 72 product in organization #103
Conversation
src/main/java/jewellery/inventory/model/resource/ResourceInProduct.java
Outdated
Show resolved
Hide resolved
src/main/java/jewellery/inventory/service/ProductInOrganizationService.java
Outdated
Show resolved
Hide resolved
src/main/java/jewellery/inventory/service/ProductInOrganizationService.java
Outdated
Show resolved
Hide resolved
src/main/java/jewellery/inventory/service/ProductInOrganizationService.java
Show resolved
Hide resolved
src/test/java/jewellery/inventory/integration/ProductInOrganizationCrudIntegrationTest.java
Outdated
Show resolved
Hide resolved
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.
There seems to be some repeating code in the methods below. Can we think of a way to reduce the code duplication? Maybe some of the setups are very similar and can extracted?
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.
We should at least do the same section separation here as we did in src/test/java/jewellery/inventory/unit/service/ProductInOrganizationServiceTest.java
src/test/java/jewellery/inventory/unit/service/ProductInOrganizationServiceTest.java
Outdated
Show resolved
Hide resolved
src/test/java/jewellery/inventory/unit/service/ProductInOrganizationServiceTest.java
Show resolved
Hide resolved
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.
please, rearrange the code in each test to have 3 sections - preparation, action, assertions, with a single empty line between them
verify(productRepository, times(1)).save(innerProduct); | ||
verify(productRepository, times(2)).save(innerProduct); |
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.
Why is this happening? From what I saw we haven't changed ProductService code?
904f197
to
2063c21
Compare
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.
obsolete change?
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.
We should at least do the same section separation here as we did in src/test/java/jewellery/inventory/unit/service/ProductInOrganizationServiceTest.java
Quality Gate passedIssues Measures |
No description provided.