mbien commented on code in PR #9595:
URL: https://github.com/apache/netbeans/pull/9595#discussion_r3920133175


##########
java/java.editor/test/unit/src/org/netbeans/modules/editor/java/JavaCodeTemplateProcessorTest.java:
##########
@@ -203,6 +204,60 @@ public void 
testCodeTemplatesShouldWorkInsideParenthesesOfWhileLoop() throws Exc
                              "}");
     }
 
+    public void testSoutTemplateIsAcceptedInUnbracedForLoopBody() throws 
Exception {
+        assertSoutTemplateAccepted("public class Test {\n"
+                + "    private void test() {\n"
+                + "        for (int i = 0; i < 3; i++)\n"
+                + "            sout\n"
+                + "    }\n"
+                + "}", true);

Review Comment:
   nitpick: feel free to use multi line Strings. The editor has a hint to 
convert to it.
   
   (same for the other new test cases you added)



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to