cleaned up imports, yay IDEAJ!
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@1274 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
@ -7,8 +7,8 @@ package test.net.sourceforge.pmd;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
import net.sourceforge.pmd.AbstractRule;
|
||||
import net.sourceforge.pmd.RuleViolation;
|
||||
import net.sourceforge.pmd.RuleContext;
|
||||
import net.sourceforge.pmd.RuleViolation;
|
||||
|
||||
public class AbstractRuleTest extends TestCase {
|
||||
|
||||
|
@ -5,9 +5,16 @@
|
||||
*/
|
||||
package test.net.sourceforge.pmd;
|
||||
|
||||
import net.sourceforge.pmd.*;
|
||||
import net.sourceforge.pmd.Report;
|
||||
import net.sourceforge.pmd.Rule;
|
||||
import net.sourceforge.pmd.RuleContext;
|
||||
import net.sourceforge.pmd.RuleProperties;
|
||||
import net.sourceforge.pmd.RuleViolation;
|
||||
|
||||
import java.util.*;
|
||||
import java.util.HashSet;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
public class MockRule implements Rule {
|
||||
|
||||
|
@ -6,10 +6,13 @@
|
||||
package test.net.sourceforge.pmd;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
import net.sourceforge.pmd.Report;
|
||||
import net.sourceforge.pmd.ReportListener;
|
||||
import net.sourceforge.pmd.RuleContext;
|
||||
import net.sourceforge.pmd.RuleViolation;
|
||||
import net.sourceforge.pmd.renderers.Renderer;
|
||||
import net.sourceforge.pmd.renderers.XMLRenderer;
|
||||
import net.sourceforge.pmd.stat.Metric;
|
||||
import net.sourceforge.pmd.*;
|
||||
|
||||
import java.util.Iterator;
|
||||
|
||||
|
@ -6,8 +6,8 @@
|
||||
package test.net.sourceforge.pmd;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
import net.sourceforge.pmd.RuleContext;
|
||||
import net.sourceforge.pmd.Report;
|
||||
import net.sourceforge.pmd.RuleContext;
|
||||
|
||||
public class RuleContextTest extends TestCase {
|
||||
|
||||
|
@ -6,15 +6,15 @@
|
||||
package test.net.sourceforge.pmd;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
import net.sourceforge.pmd.Rule;
|
||||
import net.sourceforge.pmd.RuleSet;
|
||||
import net.sourceforge.pmd.RuleSetFactory;
|
||||
import net.sourceforge.pmd.Rule;
|
||||
import net.sourceforge.pmd.RuleSetNotFoundException;
|
||||
|
||||
import java.io.ByteArrayInputStream;
|
||||
import java.util.HashSet;
|
||||
import java.util.Iterator;
|
||||
import java.util.Set;
|
||||
import java.util.HashSet;
|
||||
|
||||
public class RuleSetFactoryTest extends TestCase {
|
||||
|
||||
|
@ -1,5 +1,13 @@
|
||||
package test.net.sourceforge.pmd;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
import net.sourceforge.pmd.PMDException;
|
||||
import net.sourceforge.pmd.Rule;
|
||||
import net.sourceforge.pmd.RuleProperties;
|
||||
import net.sourceforge.pmd.RuleSet;
|
||||
import net.sourceforge.pmd.RuleSetReader;
|
||||
import net.sourceforge.pmd.RuleSetWriter;
|
||||
|
||||
import java.io.ByteArrayInputStream;
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.io.InputStream;
|
||||
@ -8,15 +16,6 @@ import java.util.HashMap;
|
||||
import java.util.Iterator;
|
||||
import java.util.Set;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
|
||||
import net.sourceforge.pmd.PMDException;
|
||||
import net.sourceforge.pmd.Rule;
|
||||
import net.sourceforge.pmd.RuleProperties;
|
||||
import net.sourceforge.pmd.RuleSet;
|
||||
import net.sourceforge.pmd.RuleSetReader;
|
||||
import net.sourceforge.pmd.RuleSetWriter;
|
||||
|
||||
|
||||
/**
|
||||
* A test for reading and writing a rule set file. The registered rule sets
|
||||
|
@ -1,19 +1,20 @@
|
||||
package test.net.sourceforge.pmd;
|
||||
|
||||
import net.sourceforge.pmd.*;
|
||||
import net.sourceforge.pmd.ast.*;
|
||||
import junit.framework.TestCase;
|
||||
import net.sourceforge.pmd.Report;
|
||||
import net.sourceforge.pmd.RuleContext;
|
||||
import net.sourceforge.pmd.RuleSet;
|
||||
import net.sourceforge.pmd.RuleViolation;
|
||||
import net.sourceforge.pmd.ast.JavaParser;
|
||||
|
||||
import java.io.StringReader;
|
||||
|
||||
import java.util.Set;
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
import java.util.HashSet;
|
||||
import java.util.Iterator;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
|
||||
import junit.framework.*;
|
||||
import java.util.HashSet;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
import java.util.Set;
|
||||
|
||||
public class RuleSetTest extends TestCase
|
||||
{
|
||||
|
@ -1,11 +1,9 @@
|
||||
package test.net.sourceforge.pmd;
|
||||
|
||||
import junit.framework.*;
|
||||
import java.util.*;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
import net.sourceforge.pmd.Rule;
|
||||
import net.sourceforge.pmd.RuleViolation;
|
||||
import net.sourceforge.pmd.RuleContext;
|
||||
import net.sourceforge.pmd.RuleViolation;
|
||||
|
||||
public class RuleViolationTest extends TestCase {
|
||||
|
||||
|
@ -6,9 +6,9 @@
|
||||
package test.net.sourceforge.pmd.ast;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
import net.sourceforge.pmd.ast.ASTVariableDeclaratorId;
|
||||
import net.sourceforge.pmd.ast.ASTTryStatement;
|
||||
import net.sourceforge.pmd.ast.ASTBlock;
|
||||
import net.sourceforge.pmd.ast.ASTTryStatement;
|
||||
import net.sourceforge.pmd.ast.ASTVariableDeclaratorId;
|
||||
|
||||
public class ASTVariableDeclaratorIdTest extends TestCase {
|
||||
|
||||
|
@ -1,8 +1,7 @@
|
||||
package test.net.sourceforge.pmd.ast;
|
||||
|
||||
import net.sourceforge.pmd.ast.*;
|
||||
|
||||
import junit.framework.*;
|
||||
import junit.framework.TestCase;
|
||||
import net.sourceforge.pmd.ast.AccessNode;
|
||||
|
||||
public class AccessNodeTest
|
||||
extends TestCase
|
||||
|
@ -1,9 +1,9 @@
|
||||
package test.net.sourceforge.pmd.ast;
|
||||
|
||||
import java.util.Set;
|
||||
import java.util.Iterator;
|
||||
import net.sourceforge.pmd.ast.ASTClassDeclaration;
|
||||
|
||||
import net.sourceforge.pmd.ast.*;
|
||||
import java.util.Iterator;
|
||||
import java.util.Set;
|
||||
|
||||
public class ClassDeclTest
|
||||
extends ParserTst
|
||||
|
@ -1,9 +1,9 @@
|
||||
package test.net.sourceforge.pmd.ast;
|
||||
|
||||
import java.util.Set;
|
||||
import java.util.Iterator;
|
||||
import net.sourceforge.pmd.ast.ASTFieldDeclaration;
|
||||
|
||||
import net.sourceforge.pmd.ast.*;
|
||||
import java.util.Iterator;
|
||||
import java.util.Set;
|
||||
|
||||
public class FieldDeclTest
|
||||
extends ParserTst
|
||||
|
@ -1,13 +1,10 @@
|
||||
package test.net.sourceforge.pmd.ast;
|
||||
|
||||
import java.io.StringReader;
|
||||
import net.sourceforge.pmd.ast.ASTMethodDeclaration;
|
||||
|
||||
import java.util.Map;
|
||||
import java.util.Iterator;
|
||||
import java.util.Set;
|
||||
|
||||
import net.sourceforge.pmd.ast.*;
|
||||
|
||||
public class MethodDeclTest
|
||||
extends ParserTst
|
||||
{
|
||||
|
@ -1,15 +1,16 @@
|
||||
package test.net.sourceforge.pmd.ast;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
|
||||
import java.util.Set;
|
||||
import java.util.HashSet;
|
||||
import net.sourceforge.pmd.ast.ASTCompilationUnit;
|
||||
import net.sourceforge.pmd.ast.JavaParser;
|
||||
import net.sourceforge.pmd.ast.JavaParserVisitor;
|
||||
|
||||
import java.io.StringReader;
|
||||
|
||||
import java.lang.reflect.*;
|
||||
|
||||
import net.sourceforge.pmd.ast.*;
|
||||
import java.lang.reflect.InvocationHandler;
|
||||
import java.lang.reflect.Method;
|
||||
import java.lang.reflect.Proxy;
|
||||
import java.util.HashSet;
|
||||
import java.util.Set;
|
||||
|
||||
public class ParserTst
|
||||
extends TestCase
|
||||
|
@ -1,11 +1,17 @@
|
||||
package test.net.sourceforge.pmd.ast;
|
||||
|
||||
import net.sourceforge.pmd.ast.*;
|
||||
import net.sourceforge.pmd.ast.ASTBlock;
|
||||
import net.sourceforge.pmd.ast.ASTBlockStatement;
|
||||
import net.sourceforge.pmd.ast.ASTMethodDeclaration;
|
||||
import net.sourceforge.pmd.ast.ASTName;
|
||||
import net.sourceforge.pmd.ast.ASTReturnStatement;
|
||||
import net.sourceforge.pmd.ast.ASTUnmodifiedClassDeclaration;
|
||||
import net.sourceforge.pmd.ast.SimpleNode;
|
||||
|
||||
import java.util.Set;
|
||||
import java.util.Iterator;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
public class SimpleNodeTest
|
||||
extends ParserTst
|
||||
|
@ -6,11 +6,14 @@
|
||||
package test.net.sourceforge.pmd.cpd;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
import net.sourceforge.pmd.cpd.*;
|
||||
import net.sourceforge.pmd.cpd.CPD;
|
||||
import net.sourceforge.pmd.cpd.Results;
|
||||
import net.sourceforge.pmd.cpd.Tile;
|
||||
import net.sourceforge.pmd.cpd.TokenEntry;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.ArrayList;
|
||||
|
||||
public class CPDTest extends TestCase{
|
||||
|
||||
|
@ -6,7 +6,12 @@
|
||||
package test.net.sourceforge.pmd.cpd;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
import net.sourceforge.pmd.cpd.*;
|
||||
import net.sourceforge.pmd.cpd.GST;
|
||||
import net.sourceforge.pmd.cpd.Results;
|
||||
import net.sourceforge.pmd.cpd.Tile;
|
||||
import net.sourceforge.pmd.cpd.TokenEntry;
|
||||
import net.sourceforge.pmd.cpd.TokenList;
|
||||
import net.sourceforge.pmd.cpd.TokenSets;
|
||||
|
||||
import java.util.Iterator;
|
||||
|
||||
|
@ -6,8 +6,8 @@
|
||||
package test.net.sourceforge.pmd.cpd;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
import net.sourceforge.pmd.cpd.TokenList;
|
||||
import net.sourceforge.pmd.cpd.JavaTokensTokenizer;
|
||||
import net.sourceforge.pmd.cpd.TokenList;
|
||||
import net.sourceforge.pmd.cpd.Tokenizer;
|
||||
|
||||
import java.io.StringReader;
|
||||
|
@ -6,7 +6,10 @@
|
||||
package test.net.sourceforge.pmd.cpd;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
import net.sourceforge.pmd.cpd.*;
|
||||
import net.sourceforge.pmd.cpd.Occurrences;
|
||||
import net.sourceforge.pmd.cpd.Tile;
|
||||
import net.sourceforge.pmd.cpd.TokenEntry;
|
||||
import net.sourceforge.pmd.cpd.TokenSets;
|
||||
|
||||
import java.util.Iterator;
|
||||
|
||||
|
@ -7,9 +7,9 @@ package test.net.sourceforge.pmd.cpd;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
import net.sourceforge.pmd.cpd.Results;
|
||||
import net.sourceforge.pmd.cpd.ResultsImpl;
|
||||
import net.sourceforge.pmd.cpd.Tile;
|
||||
import net.sourceforge.pmd.cpd.TokenEntry;
|
||||
import net.sourceforge.pmd.cpd.ResultsImpl;
|
||||
|
||||
import java.util.Iterator;
|
||||
|
||||
|
@ -6,9 +6,9 @@
|
||||
package test.net.sourceforge.pmd.cpd;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
import net.sourceforge.pmd.cpd.TokenList;
|
||||
import net.sourceforge.pmd.cpd.TokenEntry;
|
||||
import net.sourceforge.pmd.cpd.Tile;
|
||||
import net.sourceforge.pmd.cpd.TokenEntry;
|
||||
import net.sourceforge.pmd.cpd.TokenList;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
@ -6,9 +6,9 @@
|
||||
package test.net.sourceforge.pmd.cpd;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
import net.sourceforge.pmd.cpd.TokenSets;
|
||||
import net.sourceforge.pmd.cpd.TokenList;
|
||||
import net.sourceforge.pmd.cpd.TokenEntry;
|
||||
import net.sourceforge.pmd.cpd.TokenList;
|
||||
import net.sourceforge.pmd.cpd.TokenSets;
|
||||
|
||||
public class TokenSetsTest extends TestCase {
|
||||
|
||||
|
@ -1,15 +1,15 @@
|
||||
package test.net.sourceforge.pmd.renderers;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Iterator;
|
||||
import java.util.ArrayList;
|
||||
|
||||
import net.sourceforge.pmd.Report;
|
||||
import net.sourceforge.pmd.RuleContext;
|
||||
import net.sourceforge.pmd.RuleViolation;
|
||||
import net.sourceforge.pmd.renderers.XMLRenderer;
|
||||
import test.net.sourceforge.pmd.MockRule;
|
||||
|
||||
import net.sourceforge.pmd.renderers.*;
|
||||
import net.sourceforge.pmd.*;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
|
||||
public class XMLRendererTest
|
||||
extends TestCase
|
||||
|
@ -5,8 +5,8 @@
|
||||
*/
|
||||
package test.net.sourceforge.pmd.rules;
|
||||
|
||||
import net.sourceforge.pmd.rules.AvoidDeeplyNestedIfStmtsRule;
|
||||
import net.sourceforge.pmd.Rule;
|
||||
import net.sourceforge.pmd.rules.AvoidDeeplyNestedIfStmtsRule;
|
||||
|
||||
public class AvoidDeeplyNestedIfStmtsRuleTest extends RuleTst {
|
||||
|
||||
|
@ -5,7 +5,6 @@
|
||||
*/
|
||||
package test.net.sourceforge.pmd.rules;
|
||||
|
||||
import net.sourceforge.pmd.Rule;
|
||||
import net.sourceforge.pmd.rules.AvoidDuplicateLiteralsRule;
|
||||
|
||||
public class AvoidDuplicateLiteralsRuleTest extends RuleTst {
|
||||
|
@ -5,9 +5,6 @@
|
||||
*/
|
||||
package test.net.sourceforge.pmd.rules;
|
||||
|
||||
import net.sourceforge.pmd.renderers.Renderer;
|
||||
import net.sourceforge.pmd.RuleViolation;
|
||||
import net.sourceforge.pmd.Report;
|
||||
import net.sourceforge.pmd.rules.EmptyCatchBlockRule;
|
||||
|
||||
public class EmptyCatchBlockRuleTest extends RuleTst {
|
||||
|
@ -5,8 +5,6 @@
|
||||
*/
|
||||
package test.net.sourceforge.pmd.rules;
|
||||
|
||||
import net.sourceforge.pmd.Report;
|
||||
import net.sourceforge.pmd.RuleViolation;
|
||||
import net.sourceforge.pmd.rules.EmptyFinallyBlockRule;
|
||||
|
||||
public class EmptyFinallyBlockRuleTest extends RuleTst {
|
||||
|
@ -5,8 +5,6 @@
|
||||
*/
|
||||
package test.net.sourceforge.pmd.rules;
|
||||
|
||||
import net.sourceforge.pmd.RuleViolation;
|
||||
import net.sourceforge.pmd.Report;
|
||||
import net.sourceforge.pmd.rules.EmptyIfStmtRule;
|
||||
|
||||
public class EmptyIfStmtRuleTest extends RuleTst {
|
||||
|
@ -7,7 +7,6 @@ package test.net.sourceforge.pmd.rules;
|
||||
|
||||
import net.sourceforge.pmd.Report;
|
||||
import net.sourceforge.pmd.RuleViolation;
|
||||
import net.sourceforge.pmd.rules.EmptyCatchBlockRule;
|
||||
import net.sourceforge.pmd.rules.EmptyTryBlockRule;
|
||||
|
||||
public class EmptyTryBlockRuleTest extends RuleTst {
|
||||
|
@ -5,8 +5,8 @@
|
||||
*/
|
||||
package test.net.sourceforge.pmd.rules;
|
||||
|
||||
import net.sourceforge.pmd.RuleViolation;
|
||||
import net.sourceforge.pmd.Report;
|
||||
import net.sourceforge.pmd.RuleViolation;
|
||||
import net.sourceforge.pmd.rules.EmptyWhileStmtRule;
|
||||
|
||||
public class EmptyWhileStmtRuleTest extends RuleTst {
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user