diff --git a/plugins/groovy/test/org/jetbrains/plugins/groovy/refactoring/rename/RenameTest.groovy b/plugins/groovy/test/org/jetbrains/plugins/groovy/refactoring/rename/RenameTest.groovy index a921fe515d4e..c758b8d07696 100644 --- a/plugins/groovy/test/org/jetbrains/plugins/groovy/refactoring/rename/RenameTest.groovy +++ b/plugins/groovy/test/org/jetbrains/plugins/groovy/refactoring/rename/RenameTest.groovy @@ -186,7 +186,31 @@ class A { }""" } - + public void _testRenameFieldWithNonstandardName() { + def file = myFixture.configureByText("a.groovy", """ +class SomeBean { + String xXx = "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";