Class SetPropertyConstraintViolationExceptionTest

  • All Implemented Interfaces:
    junit.framework.Test

    public class SetPropertyConstraintViolationExceptionTest
    extends AbstractJCRTest
    SetPropertyConstraintViolationExceptionTest tests if setProperty() throws a ConstraintViolationException either immediately (by setValue()) or on save, if the change would violate a value constraint.
    • Constructor Detail

      • SetPropertyConstraintViolationExceptionTest

        public SetPropertyConstraintViolationExceptionTest()
    • Method Detail

      • testBooleanProperty

        public void testBooleanProperty()
                                 throws NotExecutableException,
                                        RepositoryException
        Tests if setProperty(String name, boolean value) and setProperty(String name, Value value) where value is a BooleanValue throw a ConstraintViolationException either immediately (by setProperty()), or on save, if the change would violate a node type constraint
        Throws:
        NotExecutableException
        RepositoryException
      • testDateProperty

        public void testDateProperty()
                              throws NotExecutableException,
                                     RepositoryException
        Tests if setProperty(String name, Calendar value) and setProperty(String name, Value value) where value is a DateValue throw a ConstraintViolationException either immediately (by setProperty()), or on save, if the change would violate a node type constraint
        Throws:
        NotExecutableException
        RepositoryException
      • testDoubleProperty

        public void testDoubleProperty()
                                throws NotExecutableException,
                                       RepositoryException
        Tests if setProperty(String name, double value) and setProperty(String name, Value value) where value is a DoubleValue throw a ConstraintViolationException either immediately (by setProperty()), or on save, if the change would violate a node type constraint
        Throws:
        NotExecutableException
        RepositoryException
      • testBinaryProperty

        public void testBinaryProperty()
                                throws NotExecutableException,
                                       RepositoryException
        Tests if setProperty(String name, InputStream value) and setProperty(String name, Value value) where value is a BinaryValue throw a ConstraintViolationException either immediately (by setProperty()), or on save, if the change would violate a node type constraint
        Throws:
        NotExecutableException
        RepositoryException
      • testReferenceProperty

        public void testReferenceProperty()
                                   throws NotExecutableException,
                                          RepositoryException
        Tests if setProperty(String name, Node value) and setProperty(String name, Value value) where value is a ReferenceValue throw a ConstraintViolationException either immediately (by setProperty()), or on save, if the change would violate a node type constraint
        Throws:
        NotExecutableException
        RepositoryException