Test for #IDEA-60920

This commit is contained in:
Sergey Evdokimov
2010-11-08 15:58:25 +03:00
parent a08a336da0
commit 81296b96ce
@@ -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 {