]> source.dussan.org Git - archiva.git/commitdiff
stop file being created in / - tests still fail though
authorBrett Porter <brett@apache.org>
Sun, 1 Jun 2008 02:19:07 +0000 (02:19 +0000)
committerBrett Porter <brett@apache.org>
Sun, 1 Jun 2008 02:19:07 +0000 (02:19 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@662126 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/maven/archiva/webdav/DavResourceTest.java

index ebb27a0f591b71d0d74d9328b35191551ead4dfe..3134530ce9437c1bdb0a39f6b858b7d005ca1863 100644 (file)
@@ -49,7 +49,7 @@ public class DavResourceTest extends PlexusInSpringTestCase
     
     private final String REPOPATH = "/myresource.jar";
     
-    private final File myResource = new File(baseDir, REPOPATH);
+    private File myResource;
     
     private DavResource resource;
     
@@ -62,8 +62,9 @@ public class DavResourceTest extends PlexusInSpringTestCase
         super.setUp();
         session = new ArchivaDavSession();
         mimeTypes = (MimeTypes)getApplicationContext().getBean(PlexusToSpringUtils.buildSpringId(MimeTypes.class));
-        baseDir = new File("target/DavResourceTest");
+        baseDir = getTestFile("target/DavResourceTest");
         baseDir.mkdirs();
+        myResource = new File(baseDir, "myresource.jar");
         myResource.createNewFile();
         resourceLocator = (ArchivaDavResourceLocator)new ArchivaDavLocatorFactory().createResourceLocator("/", REPOPATH);
         resource = getDavResource(REPOPATH, myResource);