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
This commit is contained in:
James William Dumay 2008-06-03 07:57:27 +00:00
parent 27dada4f43
commit 0a3ca3fdb2
1 changed files with 2 additions and 2 deletions

View 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()