mirror of https://github.com/apache/archiva.git
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:
parent
27dada4f43
commit
0a3ca3fdb2
|
@ -65,7 +65,7 @@ public class DavResourceTest extends PlexusInSpringTestCase
|
||||||
myResource = new File(baseDir, "myresource.jar");
|
myResource = new File(baseDir, "myresource.jar");
|
||||||
assertTrue("Could not create " + myResource.getAbsolutePath(), myResource.createNewFile());
|
assertTrue("Could not create " + myResource.getAbsolutePath(), myResource.createNewFile());
|
||||||
resourceLocator = (ArchivaDavResourceLocator)new ArchivaDavLocatorFactory().createResourceLocator("/", REPOPATH);
|
resourceLocator = (ArchivaDavResourceLocator)new ArchivaDavLocatorFactory().createResourceLocator("/", REPOPATH);
|
||||||
resource = getDavResource(REPOPATH, myResource);
|
resource = getDavResource(resourceLocator.getHref(false), myResource);
|
||||||
lockManager = new SimpleLockManager();
|
lockManager = new SimpleLockManager();
|
||||||
resource.addLockManager(lockManager);
|
resource.addLockManager(lockManager);
|
||||||
}
|
}
|
||||||
|
@ -81,7 +81,7 @@ public class DavResourceTest extends PlexusInSpringTestCase
|
||||||
|
|
||||||
private DavResource getDavResource(String logicalPath, File file)
|
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()
|
public void testIsLockable()
|
||||||
|
|
Loading…
Reference in New Issue