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

JUnitAssertionsShouldIncludeMessage false-positives #135

Open
1 task
dgroup opened this issue Apr 27, 2022 · 0 comments
Open
1 task

JUnitAssertionsShouldIncludeMessage false-positives #135

dgroup opened this issue Apr 27, 2022 · 0 comments
Assignees

Comments

@dgroup
Copy link
Owner

dgroup commented Apr 27, 2022

Summary

Key Value
Rule JUnitAssertionsShouldIncludeMessage
arch4u version 0.1.1

Your rule definition

default configuration from pmd-java:6.44.0

Describe the defect or false/positive rule violation

  • Case 1: Class without test, but with @before annotation on method
class Base {    // false-positive violation here
     @Before
     public void setUp(){
            // ...
     }
}

class SomeTest extends Base {
     @Test
     public void justTestIt(){
          // ...
     }
}
@dgroup dgroup self-assigned this Apr 27, 2022
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

No branches or pull requests

1 participant