From 0a3ca3fdb282c1351809ab6fd87afdfe90606aa8 Mon Sep 17 00:00:00 2001 From: James William Dumay Date: Tue, 3 Jun 2008 07:57:27 +0000 Subject: [PATCH] Actually fixing the failing test. Turns out I mixed up the file and logical paths in the DavResourceTest git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@662682 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/maven/archiva/webdav/DavResourceTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/maven/archiva/webdav/DavResourceTest.java b/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/maven/archiva/webdav/DavResourceTest.java index b78312389..483aab675 100644 --- a/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/maven/archiva/webdav/DavResourceTest.java +++ b/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/maven/archiva/webdav/DavResourceTest.java @@ -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() -- 2.39.5