This is an automated email from the ASF dual-hosted git repository.

slachiewicz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-resolver.git

commit 916b8633ce6eb9739c605cb0766f400f127cec85
Author: Sylwester Lachiewicz <[email protected]>
AuthorDate: Sat Nov 21 01:20:48 2026 +0100

    Let notExistsAndIsCreated test the creation of the directory
    
    The test created the directory before calling resolveDirectory with 
mayCreate, so it never checked that the method creates it.
---
 .../src/test/java/org/eclipse/aether/util/DirectoryUtilsTest.java       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/maven-resolver-util/src/test/java/org/eclipse/aether/util/DirectoryUtilsTest.java
 
b/maven-resolver-util/src/test/java/org/eclipse/aether/util/DirectoryUtilsTest.java
index 558acb854..98d1a91b0 100644
--- 
a/maven-resolver-util/src/test/java/org/eclipse/aether/util/DirectoryUtilsTest.java
+++ 
b/maven-resolver-util/src/test/java/org/eclipse/aether/util/DirectoryUtilsTest.java
@@ -102,7 +102,7 @@ public class DirectoryUtilsTest {
         
Files.createDirectories(Paths.get(System.getProperty("java.io.tmpdir")));
 
         Path tmpDir = Files.createTempDirectory(testInfo.getDisplayName());
-        Files.createDirectories(tmpDir.resolve("foo"));
+        assertFalse(Files.exists(tmpDir.resolve("foo")));
         Path result = DirectoryUtils.resolveDirectory("foo", tmpDir, true);
         assertEquals(tmpDir.resolve("foo"), result);
         assertTrue(Files.isDirectory(tmpDir.resolve("foo")));

Reply via email to