From 1e32b97e1f7ed90967fc6238a0c0f1423669e33d Mon Sep 17 00:00:00 2001
From: felmer <felmer>
Date: Wed, 5 Oct 2011 12:30:37 +0000
Subject: [PATCH] try to fix test

SVN: 23204
---
 .../client/web/server/PhosphoNetXClientServiceTest.java      | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/rtd_phosphonetx/sourceTest/java/ch/systemsx/cisd/openbis/plugin/phosphonetx/client/web/server/PhosphoNetXClientServiceTest.java b/rtd_phosphonetx/sourceTest/java/ch/systemsx/cisd/openbis/plugin/phosphonetx/client/web/server/PhosphoNetXClientServiceTest.java
index 6a398321a10..50b28b0fe51 100644
--- a/rtd_phosphonetx/sourceTest/java/ch/systemsx/cisd/openbis/plugin/phosphonetx/client/web/server/PhosphoNetXClientServiceTest.java
+++ b/rtd_phosphonetx/sourceTest/java/ch/systemsx/cisd/openbis/plugin/phosphonetx/client/web/server/PhosphoNetXClientServiceTest.java
@@ -138,7 +138,10 @@ public class PhosphoNetXClientServiceTest extends AbstractFileSystemTestCase
             });
         Properties properties = new Properties();
         cacheFolder = new File(workingDirectory, "cache");
-        FileUtilities.deleteRecursively(cacheFolder);
+        if (cacheFolder.exists())
+        {
+            assertTrue(FileUtilities.deleteRecursively(cacheFolder));
+        }
         properties.setProperty("technologies", Constants.TECHNOLOGY_NAME);
         properties.setProperty(Constants.TECHNOLOGY_NAME + "." + CacheManager.CACHE_FOLDER_KEY,
                 cacheFolder.getPath());
-- 
GitLab