Skip to content

Commit

Permalink
devonfw#139: small bugfix in test
Browse files Browse the repository at this point in the history
  • Loading branch information
MattesMrzik committed Nov 29, 2023
1 parent 0719c4f commit cf287fe
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.devonfw.tools.ide.io;

import static com.devonfw.tools.ide.logging.Log.info;
import static org.junit.jupiter.api.Assertions.assertThrows;

import java.io.IOException;
Expand Down Expand Up @@ -57,8 +56,9 @@ public void testSymlinkAbsoluteAsFallback(@TempDir Path tempDir) {
// arrange
IdeContext context = IdeTestContextMock.get();
if (!windowsJunctionsAreUsed(context, tempDir)) {
info("Can not check the Test: testSymlinkAbsoluteAsFallback since windows junctions are not used and fallback "
+ "from relative to absolute paths as link target is not used.");
context.info(
"Can not check the Test: testSymlinkAbsoluteAsFallback since windows junctions are not used and fallback "
+ "from relative to absolute paths as link target is not used.");
return;
}
FileAccess fileAccess = new FileAccessImpl(context);
Expand Down Expand Up @@ -101,7 +101,7 @@ public void testRelativeLinksWorkAfterMoving(@TempDir Path tempDir) {
// arrange
IdeContext context = IdeTestContextMock.get();
if (windowsJunctionsAreUsed(context, tempDir)) {
info("Can not check the Test: testRelativeLinksWorkAfterMoving since windows junctions are used.");
context.info("Can not check the Test: testRelativeLinksWorkAfterMoving since windows junctions are used.");
return;
}
FileAccess fileAccess = new FileAccessImpl(context);
Expand All @@ -125,7 +125,8 @@ public void testWindowsJunctionsCanNotPointToFiles(@TempDir Path tempDir) throws
// arrange
IdeContext context = IdeTestContextMock.get();
if (!windowsJunctionsAreUsed(context, tempDir)) {
info("Can not check the Test: testWindowsJunctionsCanNotPointToFiles since windows junctions are not used.");
context
.info("Can not check the Test: testWindowsJunctionsCanNotPointToFiles since windows junctions are not used.");
return;
}
Path file = tempDir.resolve("file");
Expand Down

0 comments on commit cf287fe

Please sign in to comment.