JaroslavTulach commented on a change in pull request #3125:
URL: https://github.com/apache/netbeans/pull/3125#discussion_r701599178
##########
File path:
groovy/groovy.editor/test/unit/src/org/netbeans/modules/groovy/editor/api/completion/MethodCCTest.java
##########
@@ -157,5 +157,83 @@ public void testCompletionNoPrefixString2() throws
Exception {
public void testMethods4() throws Exception {
checkCompletion(BASE + "Methods4.groovy", "iface.meth^", false);
}
+
+ /**
+ * Checks method completion on direct reference to a variable
+ */
+ public void testMethods5_chain1() throws Exception {
+ checkCompletion(BASE + "Methods5.groovy", "
someFile.getP^arentFile()", true);
+ }
+
+ /**
+ * Checks method completion on 2nd reference in the chain, filtering for
"m"
+ */
+ public void testMethods5_chain2() throws Exception {
+ checkCompletion(BASE + "Methods5.groovy", "
someFile.getParentFile().mk^dirs()", true);
Review comment:
This shows that the chained calls work well with code completion, right?
--
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