removed unneeded constructors thanks to JUnit 3.8.1 upgrade
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@968 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
???? 2002 - ???:
|
||||
Modified PMD to be built and used with JUnit 3.8.1 and Ant 1.5.
|
||||
|
||||
September 12 2002 - 1.0rc2:
|
||||
Added new rules: JUnitSpellingRule, JUnitStaticSuiteRule, StringInstantiationRule
|
||||
|
@ -1,2 +1,2 @@
|
||||
set CLASSPATH=../lib/pmd-1.0rc1.jar
|
||||
set CLASSPATH=../lib/pmd-1.0rc2.jar
|
||||
java net.sourceforge.pmd.cpd.GUI
|
@ -10,9 +10,6 @@ import net.sourceforge.pmd.Namespace;
|
||||
import net.sourceforge.pmd.SymbolTable;
|
||||
|
||||
public class NamespaceTest extends TestCase{
|
||||
public NamespaceTest(String name) {
|
||||
super(name);
|
||||
}
|
||||
|
||||
public void testBasic() {
|
||||
Namespace nameSpace = new Namespace();
|
||||
|
@ -24,10 +24,6 @@ public class ReportTest extends TestCase implements ReportListener {
|
||||
private boolean violationSemaphore;
|
||||
private boolean metricSemaphore;
|
||||
|
||||
public ReportTest(String name) {
|
||||
super(name);
|
||||
}
|
||||
|
||||
public void testBasic() {
|
||||
Report r = new Report();
|
||||
r.addRuleViolation(new RuleViolation(new MockRule(), 5, "foo"));
|
||||
|
@ -11,9 +11,6 @@ import net.sourceforge.pmd.Report;
|
||||
import net.sourceforge.pmd.renderers.Renderer;
|
||||
|
||||
public class RuleContextTest extends TestCase {
|
||||
public RuleContextTest(String name) {
|
||||
super(name);
|
||||
}
|
||||
|
||||
public void testReport() {
|
||||
RuleContext ctx = new RuleContext();
|
||||
|
@ -76,10 +76,6 @@ public class RuleSetFactoryTest extends TestCase {
|
||||
"</rule>" + EOL +
|
||||
"</ruleset>";
|
||||
|
||||
public RuleSetFactoryTest(String name) {
|
||||
super(name);
|
||||
}
|
||||
|
||||
public void testRuleSetNotFound() {
|
||||
RuleSetFactory rsf = new RuleSetFactory();
|
||||
try {
|
||||
|
@ -31,17 +31,6 @@ public class RuleSetReadWriteTest extends TestCase
|
||||
private RuleSet m_ruleSetIn;
|
||||
private RuleSet m_ruleSetOut;
|
||||
|
||||
/**
|
||||
********************************************************************************
|
||||
*
|
||||
* @param name
|
||||
*/
|
||||
public RuleSetReadWriteTest(String name)
|
||||
{
|
||||
super(name);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
********************************************************************************
|
||||
*
|
||||
@ -163,6 +152,6 @@ public class RuleSetReadWriteTest extends TestCase
|
||||
*/
|
||||
public static void main(String[] args)
|
||||
{
|
||||
(new RuleSetReadWriteTest("")).testReadWrite();
|
||||
(new RuleSetReadWriteTest()).testReadWrite();
|
||||
}
|
||||
}
|
||||
|
@ -21,10 +21,6 @@ public class RuleSetTest extends TestCase
|
||||
private String javaCode =
|
||||
"public class Test { }";
|
||||
|
||||
public RuleSetTest( String name ) {
|
||||
super( name );
|
||||
}
|
||||
|
||||
public void testConstructor() {
|
||||
RuleSet IUT = new RuleSet();
|
||||
}
|
||||
|
@ -7,9 +7,6 @@ import net.sourceforge.pmd.Rule;
|
||||
import net.sourceforge.pmd.RuleViolation;
|
||||
|
||||
public class RuleViolationTest extends TestCase {
|
||||
public RuleViolationTest(String name) {
|
||||
super(name);
|
||||
}
|
||||
|
||||
public void testConstructor1() {
|
||||
Rule rule = new MockRule("name", "desc");
|
||||
@ -28,11 +25,6 @@ public class RuleViolationTest extends TestCase {
|
||||
assertEquals("description", r.getDescription());
|
||||
}
|
||||
|
||||
//
|
||||
// Changed logic of Comparator so that rules in the same file
|
||||
// get grouped together in the output report.
|
||||
// DDP 7/11/2002
|
||||
//
|
||||
public void testComparatorWithDifferentFilenames() {
|
||||
Rule rule = new MockRule("name", "desc");
|
||||
RuleViolation.RuleViolationComparator comp = new RuleViolation.RuleViolationComparator();
|
||||
|
@ -15,10 +15,6 @@ public class SymbolTableTest extends TestCase {
|
||||
|
||||
private static final Symbol FOO = new Symbol("foo", 10);
|
||||
|
||||
public SymbolTableTest(String name) {
|
||||
super(name);
|
||||
}
|
||||
|
||||
public void testAdd() {
|
||||
SymbolTable s = new SymbolTable();
|
||||
s.add(FOO);
|
||||
|
@ -10,10 +10,6 @@ import net.sourceforge.pmd.Symbol;
|
||||
|
||||
public class SymbolTest extends TestCase {
|
||||
|
||||
public SymbolTest(String name) {
|
||||
super(name);
|
||||
}
|
||||
|
||||
public void testBasic() {
|
||||
Symbol s = new Symbol("foo", 10);
|
||||
assertEquals(10, s.getLine());
|
||||
|
@ -14,9 +14,6 @@ import java.util.Set;
|
||||
import java.util.HashSet;
|
||||
|
||||
public class TypeSetTest extends TestCase {
|
||||
public TypeSetTest(String name) {
|
||||
super(name);
|
||||
}
|
||||
|
||||
public void testASTCompilationUnitPackage() {
|
||||
TypeSet t = new TypeSet();
|
||||
|
Reference in New Issue
Block a user