Affects PMD Version: 7.24.0
Description:
This test is broken: JUnit4 tests must be public. And since TestFrameworksUtil.isJUnit4Method() does check the visibility, the rule doesn't trigger a violation. That's not what this test is supposed to test.
Unfortunately, if I fix the test (by adding public), the test turns red, indicating that the feature (JUnitTestsShouldIncludeAssert treats soft assertions as assertions, see #1435) is broken in the JUnit4 case.
Affects PMD Version: 7.24.0
Description:
This test is broken: JUnit4 tests must be public. And since TestFrameworksUtil.isJUnit4Method() does check the visibility, the rule doesn't trigger a violation. That's not what this test is supposed to test.
Unfortunately, if I fix the test (by adding
public), the test turns red, indicating that the feature (JUnitTestsShouldIncludeAssert treats soft assertions as assertions, see #1435) is broken in the JUnit4 case.