import is redundant if imported class is located in the same directory (IDEA-52733)

This commit is contained in:
anna
2010-03-17 14:29:21 +03:00
parent 17ce947291
commit dc8db62ae4
8 changed files with 40 additions and 5 deletions
@@ -67,6 +67,10 @@ public class MoveClassTest extends CodeInsightTestCase {
doTest("ideadev27996", new String[] { "pack1.X" }, "pack2");
}
public void testUnusedImport() throws Exception {
doTest("unusedImport", new String[]{"p2.F2"}, "p1");
}
private void doTest(String testName, String[] classNames, String newPackageName) throws Exception{
String root = JavaTestUtil.getJavaTestDataPath() + "/refactoring/moveClass/" + testName;