Class SetValueLockExceptionTest

  • All Implemented Interfaces:
    junit.framework.Test

    public class SetValueLockExceptionTest
    extends AbstractJCRTest
    SetValueLockExceptionTest Tests throwing of a LockException for the Property.setValue() methods in case the parentNode of the given property is locked.
    • Constructor Detail

      • SetValueLockExceptionTest

        public SetValueLockExceptionTest()
    • Method Detail

      • setUp

        public void setUp()
                   throws Exception
        Check if Locking is supported and if yes setup a lockable node with properties each one for the possible values passed to Property.setValue . and
        Overrides:
        setUp in class AbstractJCRTest
        Throws:
        Exception
      • doTestSetValueLockException

        public void doTestSetValueLockException​(int type)
                                         throws RepositoryException
        Tests if a LockException is thrown if a value is added to a property of a locked node.
        Parameters:
        type - The possible argument types.
        Throws:
        RepositoryException
      • createReferenceableNode

        public Node createReferenceableNode​(String name)
                                     throws RepositoryException
        Create a referenceable node under the testRootNode or null if it is not possible to create one.
        Parameters:
        name -
        Throws:
        RepositoryException