gnodet-bot commented on code in PR #14063:
URL: https://github.com/apache/maven/pull/14063#discussion_r4618725369


##########
impl/maven-impl/src/test/java/org/apache/maven/impl/model/profile/ExecutableFinderTest.java:
##########
@@ -183,7 +188,8 @@ void findsExecutableByAbsolutePath() throws Exception {
 
         String absPath = exec.toAbsolutePath().toString();
         // Absolute paths contain path separators -> direct check
-        assertTrue(ExecutableFinder.isExecutableInPath(absPath, 
contextWithPath("")));
+        assertTrue(ExecutableFinder.isExecutableInPath(
+                absPath, contextWithPathAndOs("", 
System.getProperty("os.name"))));

Review Comment:
   🚨 **CI failure: Spotless formatting violation** — `initial-build` is failing 
because Palantir Java Format requires the method call to stay on the same line 
as `assertTrue`:
   
   ```suggestion
           assertTrue(ExecutableFinder.isExecutableInPath(
                   absPath, contextWithPathAndOs("", 
System.getProperty("os.name"))));
   ```
   
   Run `./mvnw spotless:apply -pl impl/maven-impl` to fix it.



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

Reply via email to