forked from phoedos/pmd
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:
@ -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 +
|
||||
"} ";
|
||||
|
||||
}
|
||||
|
@ -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 +
|
||||
"} ";
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user