Package org.apache.jackrabbit.webdav.lock

Examples of org.apache.jackrabbit.webdav.lock.LockInfo


    @Test
    public void testRefreshLock()
        throws Exception
    {
        LockInfo info = new LockInfo( Scope.EXCLUSIVE, Type.WRITE, "/", 0, false );

        assertEquals( 0, resource.getLocks().length );

        lockManager.createLock( info, resource );
View Full Code Here


    @Test
    public void testUnlock()
        throws Exception
    {
        LockInfo info = new LockInfo( Scope.EXCLUSIVE, Type.WRITE, "/", 0, false );

        assertEquals( 0, resource.getLocks().length );

        lockManager.createLock( info, resource );
View Full Code Here

    @Test
    public void testUnlockThrowsDavExceptionIfNotLocked()
        throws Exception
    {
        LockInfo info = new LockInfo( Scope.EXCLUSIVE, Type.WRITE, "/", 0, false );

        assertEquals( 0, resource.getLocks().length );

        lockManager.createLock( info, resource );
View Full Code Here

    public void testLock()
        throws Exception
    {
        assertEquals(0, resource.getLocks().length);
      
        LockInfo info = new LockInfo(Scope.EXCLUSIVE, Type.WRITE, "/", 0, false);
        lockManager.createLock(info, resource);
       
        assertEquals(1, resource.getLocks().length);
    }
View Full Code Here

    public void testLockIfResourceUnlockable()
        throws Exception
    {
        assertEquals(0, resource.getLocks().length);
      
        LockInfo info = new LockInfo(Scope.SHARED, Type.WRITE, "/", 0, false);
        try
        {
            lockManager.createLock(info, resource);
            fail("Did not throw dav exception");
        }
View Full Code Here

    }
   
    public void testGetLock()
        throws Exception
    {
        LockInfo info = new LockInfo(Scope.EXCLUSIVE, Type.WRITE, "/", 0, false);
        lockManager.createLock(info, resource);
       
        assertEquals(1, resource.getLocks().length);
       
        //Lock should exist
View Full Code Here

   
   
    public void testRefreshLockThrowsExceptionIfNoLockIsPresent()
        throws Exception
    {
        LockInfo info = new LockInfo(Scope.EXCLUSIVE, Type.WRITE, "/", 0, false);
       
        assertEquals(0, resource.getLocks().length);      
       
        try
        {
View Full Code Here

    }
   
    public void testRefreshLock()
        throws Exception
    {
        LockInfo info = new LockInfo(Scope.EXCLUSIVE, Type.WRITE, "/", 0, false);
       
        assertEquals(0, resource.getLocks().length);
       
        lockManager.createLock(info, resource);
       
View Full Code Here

    }
   
    public void testUnlock()
        throws Exception
    {
        LockInfo info = new LockInfo(Scope.EXCLUSIVE, Type.WRITE, "/", 0, false);
       
        assertEquals(0, resource.getLocks().length);
       
        lockManager.createLock(info, resource);
       
View Full Code Here

    }   
   
    public void testUnlockThrowsDavExceptionIfNotLocked()
        throws Exception
    {
        LockInfo info = new LockInfo(Scope.EXCLUSIVE, Type.WRITE, "/", 0, false);
       
        assertEquals(0, resource.getLocks().length);
       
        lockManager.createLock(info, resource);
       
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.webdav.lock.LockInfo

Copyright © 2018 www.massapicom. 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.