introduce vararg variable from the selected enumeration (IDEA-82508)

This commit is contained in:
anna
2012-03-11 19:00:58 +01:00
parent deb7f52be3
commit fd6b282da2
4 changed files with 30 additions and 1 deletions
@@ -202,6 +202,10 @@ public class IntroduceVariableTest extends LightCodeInsightTestCase {
public void testArrayFromVarargs1() throws Exception {
doTest(new MockIntroduceVariableHandler("strs", false, false, false, "java.lang.String[]"));
}
public void testEnumArrayFromVarargs() throws Exception {
doTest(new MockIntroduceVariableHandler("strs", false, false, false, "E[]"));
}
public void testFromFinalFieldOnAssignment() throws Exception {
doTest(new MockIntroduceVariableHandler("strs", false, false, false, "java.lang.String"));