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 6a398321a10f606777aa20eccce6430d295f9ff7..50b28b0fe511b8a1ad22ade2b0b945c4f225978b 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());