mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 14:23:28 +07:00
introduce field: fix introducing in anonymous class; fix enclosing constructor (IDEA-66774)
This commit is contained in:
@@ -99,4 +99,10 @@ public class IntroduceFieldInSameClassTest extends LightCodeInsightTestCase {
|
||||
"Invalid expression context.", e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
public void testInConstructorEnclosingAnonymous() throws Exception {
|
||||
configureByFile("/refactoring/introduceField/beforeEnclosingAnonymous.java");
|
||||
performRefactoring(BaseExpressionToFieldHandler.InitializationPlace.IN_CONSTRUCTOR, false);
|
||||
checkResultByFile("/refactoring/introduceField/afterEnclosingAnonymous.java");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user