-
Notifications
You must be signed in to change notification settings - Fork 8
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
Support for interfaces #16
Conversation
Codecov Report
@@ Coverage Diff @@
## master #16 +/- ##
============================================
+ Coverage 92.10% 92.15% +0.05%
- Complexity 52 53 +1
============================================
Files 6 6
Lines 152 153 +1
Branches 16 17 +1
============================================
+ Hits 140 141 +1
Misses 7 7
Partials 5 5
Continue to review full report at Codecov.
|
@@ -83,6 +83,19 @@ void createNewClassInExpression() { | |||
assertThat(result).isEqualTo("password = 1234"); | |||
} | |||
|
|||
@Test | |||
void interpolationInFields() { |
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.
Actually, if it comes to this entire test suite... to make sure all stuff works both for -AcallToStringExplicitlyInInterpolations
and without while avoiding test code duplication, you could use https://github.com/junit-team/junit4/wiki/Parameterized-tests (although most likely Maven setup for JUnit would need to be adjusted first - hence I haven't done it myself on PR #14)
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.
I thought about parameterized tests, but It may increase the complexity of the tests code base. Each test case will require one additional argument with another compiler flags and will require to use annotation with the source of all parameters.
There is another approach - we can run all tests with this flag by the use of another build script. The same code base of tests, but different build script commands. One job without compiler argument and the second turned it on. But in this case, if we need to test behavior which specifical for one compiler flag then we need to exclude manually this test from build job.
I want to try and compare these approaches.
Kudos, SonarCloud Quality Gate passed! 0 Bugs 100.0% Coverage The version of Java (1.8.0_252) you have used to run this analysis is deprecated and we will stop accepting it from October 2020. Please update to at least Java 11. |
fix for #15