Search in sources :

Example 26 with Hold

use of javax.jcr.retention.Hold in project jackrabbit by apache.

the class HoldTest method testHoldGetName.

public void testHoldGetName() throws RepositoryException, NotExecutableException {
    String holdName = getHoldName();
    Hold h = retentionMgr.addHold(testNodePath, getHoldName(), false);
    assertEquals("Hold.getName() must return the specified name.", holdName, h.getName());
}
Also used : Hold(javax.jcr.retention.Hold)

Aggregations

Hold (javax.jcr.retention.Hold)26 RepositoryException (javax.jcr.RepositoryException)9 Node (javax.jcr.Node)4 RetentionManager (javax.jcr.retention.RetentionManager)4 RetentionRegistry (org.apache.jackrabbit.core.retention.RetentionRegistry)3 PathNotFoundException (javax.jcr.PathNotFoundException)2 LockException (javax.jcr.lock.LockException)2 VersionException (javax.jcr.version.VersionException)2 ArrayList (java.util.ArrayList)1 PropertyIterator (javax.jcr.PropertyIterator)1 NodeImpl (org.apache.jackrabbit.core.NodeImpl)1 NotExecutableException (org.apache.jackrabbit.test.NotExecutableException)1