Tweaking JUnit tests to be more complete

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4645 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
Allan Caplan
2006-10-14 01:16:57 +00:00
parent 736a3560ea
commit 07a82e37ca
2 changed files with 13 additions and 0 deletions

View File

@ -23,6 +23,7 @@ public class AvoidFieldNameMatchingTypeNameTest extends SimpleAggregatorTst {
new TestDescriptor(TEST2, "TEST2", 1, rule),
new TestDescriptor(TEST3, "TEST3", 0, rule),
new TestDescriptor(TEST4, "TEST4", 1, rule),
new TestDescriptor(TEST5, "interface", 0, rule),
});
}
@ -49,4 +50,10 @@ public class AvoidFieldNameMatchingTypeNameTest extends SimpleAggregatorTst {
" String bar;" + PMD.EOL +
" }" + PMD.EOL +
"} ";
private static final String TEST5 =
"public interface Foo {" + PMD.EOL +
" public String foo();" + PMD.EOL +
"} ";
}

View File

@ -23,6 +23,7 @@ public class AvoidNonConstructorMethodsWithClassNameTest extends SimpleAggregato
new TestDescriptor(TEST2, "TEST2", 1, rule),
new TestDescriptor(TEST3, "TEST3", 2, rule),
new TestDescriptor(TEST4, "TEST4", 1, rule),
new TestDescriptor(TEST5, "interface", 0, rule),
});
}
@ -52,4 +53,9 @@ public class AvoidNonConstructorMethodsWithClassNameTest extends SimpleAggregato
" }" + PMD.EOL +
"} ";
private static final String TEST5 =
"public interface Foo {" + PMD.EOL +
" public int Foo();" + PMD.EOL +
"} ";
}