commit | e518c613716f9dc245fe1570be304a65353c120d | [log] [tgz] |
---|---|---|
author | Marc Kupietz <kupietz@ids-mannheim.de> | Tue Mar 02 16:17:40 2021 +0100 |
committer | Marc Kupietz <kupietz@ids-mannheim.de> | Tue Mar 02 16:17:40 2021 +0100 |
tree | 300fe00b1bf328ce2bc91cb98da7e858f2d05c33 | |
parent | 9204772678899cbcb000253fe9ab6062e7474f52 [diff] |
IndexControllerTest: actually check if symbolic link exists ... instead of the file it points to Change-Id: If5be76b20bbee586e7a943835b491dc4c83bd015
diff --git a/full/src/test/java/de/ids_mannheim/korap/web/controller/IndexControllerTest.java b/full/src/test/java/de/ids_mannheim/korap/web/controller/IndexControllerTest.java index 42814e1..ceaf422 100644 --- a/full/src/test/java/de/ids_mannheim/korap/web/controller/IndexControllerTest.java +++ b/full/src/test/java/de/ids_mannheim/korap/web/controller/IndexControllerTest.java
@@ -6,6 +6,7 @@ import java.net.URI; import java.net.URISyntaxException; import java.nio.file.Files; +import java.nio.file.LinkOption; import java.nio.file.Path; import java.nio.file.Paths; @@ -48,7 +49,7 @@ if (!Files.exists(vcPath)) { Files.createDirectory(vcPath); } - if (Files.exists(symLink)) { + if (Files.exists(symLink, LinkOption.NOFOLLOW_LINKS)) { Files.delete(symLink); } Files.createSymbolicLink(symLink, toLink);