-
Notifications
You must be signed in to change notification settings - Fork 106
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
Issue #233: Move endpoints related to amenities from community tag #253
Conversation
Codecov Report
@@ Coverage Diff @@
## master #253 +/- ##
=========================================
Coverage 68.28% 68.28%
Complexity 200 200
=========================================
Files 34 34
Lines 864 864
Branches 41 41
=========================================
Hits 590 590
Misses 266 266
Partials 8 8
Continue to review full report at Codecov.
|
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.
@JanneSickert
Please read the comments.
There is also one more issue related to code formatting.
Did you applied our code style to your editor? Looks like you use default editor config, please take a look here:
https://github.com/jmprathab/MyHome/blob/master/CONTRIBUTING.md#coding-style
and here:
https://www.jetbrains.com/help/idea/configuring-code-style.html
@@ -126,6 +120,9 @@ | |||
@Mock | |||
private PaymentService paymentService; | |||
|
|||
@InjectMocks | |||
private AmenityController amenityController; |
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.
Since CommunityController
do not have a connection to amenity more we should not include the amenity testing logic here :)
That should a part of AmenityControllerTest
import com.myhome.model.GetAmenityDetailsResponse; | ||
import com.myhome.model.UpdateAmenityRequest; | ||
import com.myhome.model.*; |
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.
Wildcards imports.
Why is it bad? Read it here https://stackoverflow.com/questions/147454/why-is-using-a-wild-card-with-a-java-import-statement-bad
How you can fix it in intellij?
https://stackoverflow.com/a/25916603/5785871
@JanneSickert |
I had also copyed two methods depending from the @Injectmocks I executed
and it had build without any errors. |
Oh, I mean rise a commit :) |
Closes: #233