introduce field: fix introducing in anonymous class; fix enclosing constructor (IDEA-66774)

This commit is contained in:
anna
2011-03-18 17:24:27 +01:00
parent e4c7048698
commit 938868c348
5 changed files with 51 additions and 4 deletions

View File

@@ -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");
}
}