mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-18 16:17:00 +07:00
20 lines
596 B
Java
20 lines
596 B
Java
package com.intellij.codeInsight.unwrap;
|
|
|
|
public class UnwrapArrayInitializerTest extends UnwrapTestCase {
|
|
public void testUnwrap() throws Exception {
|
|
assertUnwrapped("{\n" +
|
|
" int[] arr = new int[]{<caret>1};\n" +
|
|
"}\n",
|
|
|
|
"{\n" +
|
|
" int[] arr = {<caret>1};\n" +
|
|
"}\n");
|
|
}
|
|
|
|
public void testNotAvailable() throws Exception {
|
|
assertOptions("{\n" +
|
|
" int[] arr;\n" +
|
|
" arr = new int[]{<caret>1}" +
|
|
"}\n", "Unwrap braces");
|
|
}
|
|
} |