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:
Tom Copeland
2002-09-23 14:48:39 +00:00
parent 5a6986ac33
commit 43ee63a502
12 changed files with 3 additions and 50 deletions

View File

@ -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

View File

@ -1,2 +1,2 @@
set CLASSPATH=../lib/pmd-1.0rc1.jar
set CLASSPATH=../lib/pmd-1.0rc2.jar
java net.sourceforge.pmd.cpd.GUI

View File

@ -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();

View File

@ -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"));

View File

@ -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();

View File

@ -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 {

View File

@ -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();
}
}

View File

@ -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();
}

View File

@ -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();

View File

@ -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);

View File

@ -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());

View File

@ -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();