[java] fix PMDCoverageTest ruleset
This commit is contained in:
@ -25,7 +25,7 @@
|
||||
<rule ref="category/java/design.xml" />
|
||||
<rule ref="category/java/documentation.xml" />
|
||||
<rule ref="category/java/errorprone.xml" />
|
||||
<rule ref="category/java/multihreading.xml" />
|
||||
<rule ref="category/java/multithreading.xml" />
|
||||
<rule ref="category/java/performance.xml" />
|
||||
<!-- <rule ref="category/java/security.xml" /> -->
|
||||
|
||||
|
@ -57,6 +57,7 @@ public class PMDCoverageTest {
|
||||
PMD.run(args);
|
||||
|
||||
assertFalse("There was at least one exception mentioned in the output", output.getLog().contains("Exception applying rule"));
|
||||
assertFalse("Wrong configuration? Ruleset not found", output.getLog().contains("Ruleset not found"));
|
||||
|
||||
String report = FileUtils.readFileToString(f);
|
||||
assertEquals("No processing errors expected", 0, StringUtils.countMatches(report, "Error while processing"));
|
||||
|
Reference in New Issue
Block a user