From: James William Dumay Date: Wed, 28 May 2008 12:28:45 +0000 (+0000) Subject: Need to clean the test repository after every test... X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4240edb936eac5d8580c784133e59e2cdb2647fb;p=archiva.git Need to clean the test repository after every test... git-svn-id: https://svn.apache.org/repos/asf/archiva/branches/moved-repo-servlet@660920 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/maven/archiva/webdav/AbstractRepositoryServletTestCase.java b/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/maven/archiva/webdav/AbstractRepositoryServletTestCase.java index 9910d4363..e2af9da72 100644 --- a/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/maven/archiva/webdav/AbstractRepositoryServletTestCase.java +++ b/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/maven/archiva/webdav/AbstractRepositoryServletTestCase.java @@ -193,6 +193,11 @@ public abstract class AbstractRepositoryServletTestCase sr.shutDown(); } + if (repoRootInternal.exists()) + { + FileUtils.deleteDirectory(repoRootInternal); + } + super.tearDown(); }