You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following JUnit- rules fail on sonar-pmd 4.0.0:
Caused by: net.sourceforge.pmd.lang.rule.RuleSetLoadException: Cannot load ruleset rulesets/java/migrating.xml/JUnit4TestShouldUseBeforeAnnotation: Cannot resolve rule/ruleset reference 'rulesets/java/migrating.xml/JUnit4TestShouldUseBeforeAnnotation'. Make sure the resource is a valid file or URL and is on the CLASSPATH. Use --debug (or a fine log level) to see the current classpath.
Caused by: java.lang.IllegalStateException: net.sourceforge.pmd.lang.rule.RuleSetLoadException: Cannot load ruleset rulesets/java/migrating.xml/JUnit4TestShouldUseAfterAnnotation: Cannot resolve rule/ruleset reference 'rulesets/java/migrating.xml/JUnit4TestShouldUseAfterAnnotation'. Make sure the resource is a valid file or URL and is on the CLASSPATH. Use --debug (or a fine log level) to see the current classpath.
Caused by: java.lang.IllegalStateException: net.sourceforge.pmd.lang.rule.RuleSetLoadException: Cannot load ruleset rulesets/java/migrating.xml/JUnit4TestShouldUseTestAnnotation: Cannot resolve rule/ruleset reference 'rulesets/java/migrating.xml/JUnit4TestShouldUseTestAnnotation'. Make sure the resource is a valid file or URL and is on the CLASSPATH. Use --debug (or a fine log level) to see the current classpath.
Caused by: net.sourceforge.pmd.lang.rule.RuleSetLoadException: Cannot load ruleset rulesets/java/junit.xml/UnnecessaryBooleanAssertion: Cannot resolve rule/ruleset reference 'rulesets/java/junit.xml/UnnecessaryBooleanAssertion'. Make sure the resource is a valid file or URL and is on the CLASSPATH. Use --debug (or a fine log level) to see the current classpath.
Caused by: java.lang.IllegalStateException: net.sourceforge.pmd.lang.rule.RuleSetLoadException: Cannot load ruleset rulesets/java/migrating.xml/JUnit4SuitesShouldUseSuiteAnnotation: Cannot resolve rule/ruleset reference 'rulesets/java/migrating.xml/JUnit4SuitesShouldUseSuiteAnnotation'. Make sure the resource is a valid file or URL and is on the CLASSPATH. Use --debug (or a fine log level) to see the current classpath.
Caused by: net.sourceforge.pmd.lang.rule.RuleSetLoadException: Cannot load ruleset rulesets/java/migrating.xml/JUnitUseExpected: Cannot resolve rule/ruleset reference 'rulesets/java/migrating.xml/JUnitUseExpected'. Make sure the resource is a valid file or URL and is on the CLASSPATH. Use --debug (or a fine log level) to see the current classpath.
The text was updated successfully, but these errors were encountered:
@meisenla thanks for reporting, the junit rules have all been moved in pmd7 or removed from pmd7. We will remove these references for now and recheck the rule mappings in a future release.
For example: JUnitAssertionsShouldIncludeMessage has been moved to bestpractices with new name UnitTestAssertionsShouldIncludeMessageRule.
The following JUnit- rules fail on sonar-pmd 4.0.0:
The text was updated successfully, but these errors were encountered: