From f6fa6dffcf7ddf084e3d923ac846750fed416a1a Mon Sep 17 00:00:00 2001 From: Tom Copeland Date: Mon, 28 Oct 2002 14:38:34 +0000 Subject: [PATCH] tweak git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@1159 51baf565-9d33-0410-a72c-fc3788e3496d --- .../pmd/rules/EmptyCatchBlockRuleTest.java | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/pmd/regress/test/net/sourceforge/pmd/rules/EmptyCatchBlockRuleTest.java b/pmd/regress/test/net/sourceforge/pmd/rules/EmptyCatchBlockRuleTest.java index 5028e9682a..2ebcbcfd6f 100644 --- a/pmd/regress/test/net/sourceforge/pmd/rules/EmptyCatchBlockRuleTest.java +++ b/pmd/regress/test/net/sourceforge/pmd/rules/EmptyCatchBlockRuleTest.java @@ -13,21 +13,17 @@ import net.sourceforge.pmd.rules.EmptyCatchBlockRule; public class EmptyCatchBlockRuleTest extends RuleTst { public void testEmptyCatchBlock() throws Throwable { - Report report = process("EmptyCatchBlock.java", new EmptyCatchBlockRule()); - assertEquals(1, report.size()); - assertEquals(new EmptyCatchBlockRule(), ((RuleViolation)report.iterator().next()).getRule()); + runTest("EmptyCatchBlock.java", 1, new EmptyCatchBlockRule()); } public void testEmptyCatchBlock2() throws Throwable { - Report report = process("EmptyCatchBlock2.java", new EmptyCatchBlockRule()); - assertTrue(report.isEmpty()); + runTest("EmptyCatchBlock2.java", 0, new EmptyCatchBlockRule()); } public void testEmptyCatchBlock3() throws Throwable { - Report report = process("EmptyCatchBlock3.java", new EmptyCatchBlockRule()); - assertEquals(1, report.size()); - assertEquals(new EmptyCatchBlockRule(), ((RuleViolation)report.iterator().next()).getRule()); + runTest("EmptyCatchBlock3.java", 1, new EmptyCatchBlockRule()); } } +