archiva-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r662126 - /archiva/trunk/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/maven/archiva/webdav/DavResourceTest.java
Date Sun, 01 Jun 2008 02:19:07 GMT
Author: brett
Date: Sat May 31 19:19:07 2008
New Revision: 662126

URL: http://svn.apache.org/viewvc?rev=662126&view=rev
Log:
stop file being created in / - tests still fail though

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

Modified: archiva/trunk/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/maven/archiva/webdav/DavResourceTest.java
URL: http://svn.apache.org/viewvc/archiva/trunk/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/maven/archiva/webdav/DavResourceTest.java?rev=662126&r1=662125&r2=662126&view=diff
==============================================================================
--- archiva/trunk/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/maven/archiva/webdav/DavResourceTest.java
(original)
+++ archiva/trunk/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/maven/archiva/webdav/DavResourceTest.java
Sat May 31 19:19:07 2008
@@ -49,7 +49,7 @@
     
     private final String REPOPATH = "/myresource.jar";
     
-    private final File myResource = new File(baseDir, REPOPATH);
+    private File myResource;
     
     private DavResource resource;
     
@@ -62,8 +62,9 @@
         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);



Mime
View raw message