matthiasblaesing commented on a change in pull request #2977:
URL: https://github.com/apache/netbeans/pull/2977#discussion_r641733162



##########
File path: 
java/maven/test/unit/src/org/netbeans/modules/maven/queries/UnitTestsCompilerOptionsQueryImplTest.java
##########
@@ -59,13 +60,19 @@ public void testNoCompilerPluginSpecified() throws 
Exception {
         TestFileUtils.writeFile(wd,
                                 "src/test/java/module-info.java",
                                 "module test { requires testng; }\n");
+        TestFileUtils.writeFile(wd,
+                                "target/generated-sources/java/test/Gen.java",
+                                "package test;\n" +
+                                "public class Gen {}\n");
         FileObject testSource =
         TestFileUtils.writeFile(wd,
                                 "src/test/java/test/APITest.java",
                                 "package test;\n" +
                                 "public class APITest {}\n");
         assertEquals(Arrays.asList("--patch-module",
-                                   "test=" + 
FileUtil.toFile(wd.getFileObject("src/main/java")).getAbsolutePath()),
+                                   "test=" + 
FileUtil.toFile(wd.getFileObject("src/main/java")).toURI().getPath() +

Review comment:
       You are right, I had to reiterate the difference between java.net.URL 
and java.net.URI and I had to realize that an URI is used here.




-- 
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.

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