mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Test for #IDEA-60927
This commit is contained in:
+25
-1
@@ -186,7 +186,31 @@ class A {
|
||||
}"""
|
||||
}
|
||||
|
||||
|
||||
public void _testRenameFieldWithNonstandardName() {
|
||||
def file = myFixture.configureByText("a.groovy", """
|
||||
class SomeBean {
|
||||
String xXx<caret> = "field"
|
||||
public String getxXx() {
|
||||
return "method"
|
||||
}
|
||||
public static void main(String[] args) {
|
||||
println(new SomeBean().xXx)
|
||||
}
|
||||
}
|
||||
""")
|
||||
myFixture.renameElementAtCaret "xXx777"
|
||||
assertEquals """
|
||||
class SomeBean {
|
||||
String xXx777 = "field"
|
||||
public String getxXx777() {
|
||||
return "method"
|
||||
}
|
||||
public static void main(String[] args) {
|
||||
println(new SomeBean().xXx777)
|
||||
}
|
||||
}
|
||||
""", file.text
|
||||
}
|
||||
|
||||
public void doTest() throws Throwable {
|
||||
final String testFile = getTestName(true).replace('$', '/') + ".test";
|
||||
|
||||
Reference in New Issue
Block a user