Skip to content
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

Merged
merged 33 commits into from
Apr 4, 2024
Merged

Conversation

berki0
Copy link
Contributor

@berki0 berki0 commented Apr 1, 2024

No description provided.

@berki0 berki0 requested review from VladoKat, ignatIgnatov and Alekseeybg and removed request for VladoKat and ignatIgnatov April 1, 2024 05:47
Copy link
Contributor

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?

Copy link
Contributor

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

Copy link
Contributor

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

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?

@berki0 berki0 force-pushed the Feature-72-Product-in-Organization branch from 904f197 to 2063c21 Compare April 3, 2024 07:17
Copy link
Contributor

Choose a reason for hiding this comment

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

obsolete change?

Copy link
Contributor

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

Copy link

sonarcloud bot commented Apr 3, 2024

@berki0 berki0 merged commit 3be7168 into test Apr 4, 2024
3 checks passed
@berki0 berki0 deleted the Feature-72-Product-in-Organization branch April 4, 2024 15:00
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