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=2a82d13c4dbe1ef260f860ec602a066a78435484;p=archiva.git Need to clean the test repository after every test... git-svn-id: https://svn.apache.org/repos/asf/archiva/branches@660920 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/moved-repo-servlet/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/maven/archiva/webdav/AbstractRepositoryServletTestCase.java b/moved-repo-servlet/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/maven/archiva/webdav/AbstractRepositoryServletTestCase.java index 9910d4363..e2af9da72 100644 --- a/moved-repo-servlet/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/maven/archiva/webdav/AbstractRepositoryServletTestCase.java +++ b/moved-repo-servlet/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(); }