use of org.apache.jackrabbit.webdav.lock.SimpleLockManager in project archiva by apache.
the class DavResourceTest method setUp.
@Override
@Before
public void setUp() throws Exception {
super.setUp();
session = new ArchivaDavSession();
baseDir = Paths.get("target/DavResourceTest");
Files.createDirectories(baseDir);
repository = new MavenManagedRepository("repo001", "repo001", baseDir);
myResource = baseDir.resolve("myresource.jar");
Files.createFile(myResource);
resourceFactory = new RootContextDavResourceFactory();
resourceLocator = (ArchivaDavResourceLocator) new ArchivaDavLocatorFactory().createResourceLocator("/", REPOPATH);
resource = getDavResource(resourceLocator.getHref(false), myResource);
lockManager = new SimpleLockManager();
resource.addLockManager(lockManager);
}
Aggregations