mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Added test for "iter" postfix template (IDEA-CR-5441)
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
import java.util.ArrayList;
|
||||
|
||||
class Test {
|
||||
public static void main(String[] args) {
|
||||
ArrayList<Object> list = new ArrayList<Object>();
|
||||
list.iter<caret>
|
||||
}
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
import java.util.ArrayList;
|
||||
|
||||
class Test {
|
||||
public static void main(String[] args) {
|
||||
ArrayList<Object> list = new ArrayList<Object>();
|
||||
for (Object o : list) {
|
||||
<caret>
|
||||
}
|
||||
}
|
||||
}
|
||||
+4
@@ -37,6 +37,10 @@ public class ForeachTemplateTest extends PostfixTemplateTestCase {
|
||||
public void testInAnonymousRunnable() {
|
||||
doTest();
|
||||
}
|
||||
|
||||
public void testIterSameAsFor() {
|
||||
doTest();
|
||||
}
|
||||
|
||||
public void testFinalLocals() {
|
||||
CodeStyleSettings settings = CodeStyleSettingsManager.getSettings(getProject());
|
||||
|
||||
Reference in New Issue
Block a user