[java] fix PMDCoverageTest ruleset

This commit is contained in:
Andreas Dangel
2017-12-15 11:13:35 +01:00
parent bd77ba6a0f
commit 998cad8595
2 changed files with 2 additions and 1 deletions

View File

@ -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"));