]> source.dussan.org Git - archiva.git/commitdiff
Actually fixing the failing test. Turns out I mixed up the file and logical paths...
authorJames William Dumay <jdumay@apache.org>
Tue, 3 Jun 2008 07:57:27 +0000 (07:57 +0000)
committerJames William Dumay <jdumay@apache.org>
Tue, 3 Jun 2008 07:57:27 +0000 (07:57 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@662682 13f79535-47bb-0310-9956-ffa450edef68

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

index b783123895fb32a9dd1ffe9a77a048e519ec091d..483aab675523e307ad0ee8479a990a340320a71d 100644 (file)
@@ -65,7 +65,7 @@ public class DavResourceTest extends PlexusInSpringTestCase
         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 @@ public class DavResourceTest extends PlexusInSpringTestCase
     
     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()