From 58dbe8f377d873be4d68d323bb5b4ed0dfba7080 Mon Sep 17 00:00:00 2001
From: Piotr Gawron <piotr.gawron@uni.lu>
Date: Tue, 11 Sep 2018 16:47:57 +0200
Subject: [PATCH] path fixed to crash on systems with root privileges

---
 .../java/lcsb/mapviewer/annotation/cache/BigFileCacheTest.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/annotation/src/test/java/lcsb/mapviewer/annotation/cache/BigFileCacheTest.java b/annotation/src/test/java/lcsb/mapviewer/annotation/cache/BigFileCacheTest.java
index 0503ae0ce6..8e67534c5a 100644
--- a/annotation/src/test/java/lcsb/mapviewer/annotation/cache/BigFileCacheTest.java
+++ b/annotation/src/test/java/lcsb/mapviewer/annotation/cache/BigFileCacheTest.java
@@ -145,7 +145,7 @@ public class BigFileCacheTest extends AnnotationTestFunctions {
   public void testSavingToInvalidDirectory() throws Exception {
     try {
       String url = httpUrl + "?invalid";
-      Configuration.setWebAppDir("/");
+      Configuration.setWebAppDir("/some-none-existing/path/");
       bigFileCache.downloadFile(url, false, null);
       fail("Exception expected");
     } catch (IOException e) {
-- 
GitLab