archiva-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdu...@apache.org
Subject svn commit: r662682 - /archiva/trunk/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/maven/archiva/webdav/DavResourceTest.java
Date Tue, 03 Jun 2008 07:57:28 GMT
Author: jdumay
Date: Tue Jun  3 00:57:27 2008
New Revision: 662682

URL: http://svn.apache.org/viewvc?rev=662682&view=rev
Log:
Actually fixing the failing test. Turns out I mixed up the file and logical paths in the DavResourceTest

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=662682&r1=662681&r2=662682&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
Tue Jun  3 00:57:27 2008
@@ -65,7 +65,7 @@
         myResource = new File(baseDir, "myresource.jar");
         assertTrue("Could not create " + myResource.getAbsolutePath(), myResource.createNewFile());
         resourceLocator = (ArchivaDavResourceLocator)new ArchivaDavLocatorFactory().createResourceLocator("/",
REPOPATH);
-        resource = getDavResource(REPOPATH, myResource);
+        resource = getDavResource(resourceLocator.getHref(false), myResource);
         lockManager = new SimpleLockManager();
         resource.addLockManager(lockManager);
     }
@@ -81,7 +81,7 @@
     
     private DavResource getDavResource(String logicalPath, File file)
     {
-        return new ArchivaDavResource(logicalPath, file.getAbsolutePath(), mimeTypes, session,
resourceLocator, null);
+        return new ArchivaDavResource(file.getAbsolutePath(), logicalPath, mimeTypes, session,
resourceLocator, null);
     }
     
     public void testIsLockable()



Mime
View raw message