rule name added to assert message

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5577 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
Xavier Le Vourch
2007-10-24 20:11:15 +00:00
parent 2753e751c3
commit 410d902956

View File

@ -84,7 +84,7 @@ public abstract class RuleTst {
t.printStackTrace();
throw new RuntimeException("Test \"" + test.getDescription() + "\" on Rule \"" + test.getRule().getName() + "\"failed");
}
assertEquals("\"" + test.getDescription() + "\" test resulted in wrong number of failures,",
assertEquals("Test \"" + test.getDescription() + "\" on Rule \"" + test.getRule().getName() + "\" resulted in wrong number of failures,",
test.getNumberOfProblemsExpected(), res);
} finally {
//Restore old properties