mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Test for #IDEA-60920
This commit is contained in:
@@ -225,6 +225,31 @@ class A {
|
||||
return newName;
|
||||
}
|
||||
|
||||
public void _testRecursivePathRename() {
|
||||
def file = myFixture.configureByText("SomeBean.groovy", """
|
||||
class SomeBean {
|
||||
|
||||
SomeBean someBean<caret>
|
||||
|
||||
static {
|
||||
new SomeBean().someBean.someBean.someBean.someBean.toString()
|
||||
}
|
||||
}
|
||||
""")
|
||||
myFixture.renameElementAtCaret "b"
|
||||
|
||||
assertEquals """
|
||||
class SomeBean {
|
||||
|
||||
SomeBean b
|
||||
|
||||
static {
|
||||
new SomeBean().b.b.b.b.toString()
|
||||
}
|
||||
}
|
||||
""", file.text
|
||||
}
|
||||
|
||||
public void testDontAutoRenameDynamicallyTypeUsage() throws Exception {
|
||||
myFixture.configureByText "a.groovy", """
|
||||
class Goo {
|
||||
|
||||
Reference in New Issue
Block a user