Package org.apache.jackrabbit.core.util

Examples of org.apache.jackrabbit.core.util.RepositoryLock.release()


     * @throws RepositoryException if an error occurs
     */
    public void testNoFilesLeftBehind() throws RepositoryException {
        RepositoryLock lock = new RepositoryLock(directory.getPath());
        lock.acquire();
        lock.release();
        assertEquals(
                "Some files left behind by a lock",
                0, directory.listFiles().length);
    }

View Full Code Here


        try {
            lockB.acquire();
        } catch (RepositoryException e) {
            fail("Can not acquire a released lock");
        }
        lockB.release();
    }

    /**
     * Tests that the canonical path is used for locking.
     *
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.