*** empty log message ***

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@1113 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
Tom Copeland
2002-10-11 20:48:25 +00:00
parent 2f5b177dc6
commit 25b60f2648
2 changed files with 30 additions and 3 deletions

View File

@ -0,0 +1,27 @@
/*
* User: tom
* Date: Oct 11, 2002
* Time: 4:41:46 PM
*/
package test.net.sourceforge.pmd.rules;
import net.sourceforge.pmd.rules.UnusedFormalParameterRule;
public class UnusedFormalParameterRuleTest extends RuleTst {
private UnusedFormalParameterRule rule;
public void setUp() {
rule = new UnusedFormalParameterRule();
rule.setMessage("Avoid this stuff -> ''{0}''");
}
public void testOneParam() throws Throwable {
runTest("UnusedFormalParam1.java", 1, rule);
}
public void testFullyQualified() throws Throwable {
runTest("UnusedFormalParam2.java", 0, rule);
}
public void testOneParamWithMethodCall() throws Throwable {
runTest("UnusedFormalParam3.java", 0, rule);
}
}

View File

@ -36,13 +36,13 @@ public class UnusedPrivateMethodRuleTest extends RuleTst {
assertEquals(1, report.size());
}
public void test5() throws Throwable {
Report report = process("UnusedPrivateMethod5.java", rule);
public void test5() throws Throwable {
Report report = process("UnusedPrivateMethod5.java", rule);
assertTrue(report.isEmpty());
}
public void test6() throws Throwable {
Report report = process("UnusedPrivateMethod6.java", rule);
assertTrue(report.isEmpty());
}
}