rename: find collisions with static imported members in findUsages tests

This commit is contained in:
anna
2010-01-20 12:51:45 +03:00
parent 8fdf313fe3
commit 95f4056c89
3 changed files with 24 additions and 0 deletions
@@ -0,0 +1,10 @@
import static java.lang.String.valueOf;
public class RenameCollisions {
public static class StaticInnerClass {
public static final int SI_STATIC_FIELD<caret> = 9;
public static void staticContext() {
valueOf(null);
}
}
}
@@ -0,0 +1,10 @@
import static java.lang.String.valueOf;
public class RenameCollisions {
public static class StaticInnerClass {
public static final int CASE_INSENSITIVE_ORDER<caret> = 9;
public static void staticContext() {
valueOf(null);
}
}
}
@@ -76,6 +76,10 @@ public class RenameCollisionsTest extends LightCodeInsightTestCase {
doTest("CASE_INSENSITIVE_ORDER");
}
public void testRenameVarConstToAlien1() throws Exception {
doTest("CASE_INSENSITIVE_ORDER");
}
public void testRenameVarConstToParam() throws Exception {
doTest("param3");
}