Search in sources :

Example 1 with SimpleLockManager

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);
}
Also used : MavenManagedRepository(org.apache.archiva.repository.maven2.MavenManagedRepository) SimpleLockManager(org.apache.jackrabbit.webdav.lock.SimpleLockManager) Before(org.junit.Before)

Aggregations

MavenManagedRepository (org.apache.archiva.repository.maven2.MavenManagedRepository)1 SimpleLockManager (org.apache.jackrabbit.webdav.lock.SimpleLockManager)1 Before (org.junit.Before)1