Class SetPropertyStringTest

  • All Implemented Interfaces:
    junit.framework.Test

    public class SetPropertyStringTest
    extends AbstractJCRTest
    SetPropertyStringTest tests the methods Node.setProperty(String, String), Node.setProperty(String, String[]) and Node.setProperty(String, String[], int)
    • Constructor Detail

      • SetPropertyStringTest

        public SetPropertyStringTest()
    • Method Detail

      • testNewStringPropertySession

        public void testNewStringPropertySession()
                                          throws Exception
        Tests if adding a property with Node.setProperty(String, String) works with Session.save()
        Throws:
        Exception
      • testModifyStringPropertySession

        public void testModifyStringPropertySession()
                                             throws Exception
        Tests if modifying a property with Node.setProperty(String, String) works with Session.save()
        Throws:
        Exception
      • testNewStringPropertyParent

        public void testNewStringPropertyParent()
                                         throws Exception
        Tests if adding a property with Node.setProperty(String, String) works with parentNode.save()
        Throws:
        Exception
      • testModifyStringPropertyParent

        public void testModifyStringPropertyParent()
                                            throws Exception
        Tests if modifying a property with Node.setProperty(String, String) works with parentNode.save()
        Throws:
        Exception
      • testRemoveStringPropertySession

        public void testRemoveStringPropertySession()
                                             throws Exception
        Tests if removing a String property with Node.setProperty(String, null) works with Session.save()
        Throws:
        Exception
      • testRemoveStringPropertyParent

        public void testRemoveStringPropertyParent()
                                            throws Exception
        Tests if removing a String property with Node.setProperty(String, null) works with parentNode.save()
        Throws:
        Exception
      • testNewStringPropertySessionWithPropertyType

        public void testNewStringPropertySessionWithPropertyType()
                                                          throws Exception
        Tests if adding a property with Node.setProperty(String, String, int) works with Session.save()
        Throws:
        Exception
      • testModifyStringPropertySessionWithPropertyType

        public void testModifyStringPropertySessionWithPropertyType()
                                                             throws Exception
        Tests if modifying a property with Node.setProperty(String, String, int) works with Session.save()
        Throws:
        Exception
      • testNewStringPropertyParentWithPropertyType

        public void testNewStringPropertyParentWithPropertyType()
                                                         throws Exception
        Tests if adding a property with Node.setProperty(String, String, int) works with parentNode.save()
        Throws:
        Exception
      • testModifyStringPropertyParentWithPropertyType

        public void testModifyStringPropertyParentWithPropertyType()
                                                            throws Exception
        Tests if modifying a property with Node.setProperty(String, String, int) works with parentNode.save()
        Throws:
        Exception
      • testRemoveStringPropertySessionWithPropertyType

        public void testRemoveStringPropertySessionWithPropertyType()
                                                             throws Exception
        Tests if removing a String property with Node.setProperty(String, null, int) works with Session.save()
        Throws:
        Exception
      • testRemoveStringPropertyParentWithPropertyType

        public void testRemoveStringPropertyParentWithPropertyType()
                                                            throws Exception
        Tests if removing a String property with Node.setProperty(String, null, int) works with parentNode.save()
        Throws:
        Exception
      • testNewStringArrayPropertySession

        public void testNewStringArrayPropertySession()
                                               throws Exception
        Tests if adding properties with Node.setProperty(String, String[]) works with Session.save()
        Throws:
        Exception
      • testModifyStringArrayPropertySession

        public void testModifyStringArrayPropertySession()
                                                  throws Exception
        Tests if modifying properties with Node.setProperty(String, String[]) works with Session.save()
        Throws:
        Exception
      • testNewStringArrayPropertyParent

        public void testNewStringArrayPropertyParent()
                                              throws Exception
        Tests if adding properties with Node.setProperty(String, String[]) works with parentNode.save()
        Throws:
        Exception
      • testModifyStringArrayPropertyParent

        public void testModifyStringArrayPropertyParent()
                                                 throws Exception
        Tests if modifying properties with Node.setProperty(String, String[]) works with parentNode.save()
        Throws:
        Exception
      • testRemoveStringArrayPropertySession

        public void testRemoveStringArrayPropertySession()
                                                  throws Exception
        Tests if removing a String[] property with Node.setProperty(String, null) works with Session.save()
        Throws:
        Exception
      • testRemoveStringArrayPropertyParent

        public void testRemoveStringArrayPropertyParent()
                                                 throws Exception
        Tests if removing a String[] property with Node.setProperty(String, null) works with parentNode.save()
        Throws:
        Exception
      • testSetNullStringArray

        public void testSetNullStringArray()
                                    throws Exception
        Tests if Node.setProperty(String, String[]) saves an array of null values as an empty String[]
        Throws:
        Exception
      • testNewStringArrayPropertySessionWithPropertyType

        public void testNewStringArrayPropertySessionWithPropertyType()
                                                               throws Exception
        Tests if adding properties with Node.setProperty(String, String[], int) works with Session.save()
        Throws:
        Exception
      • testModifyStringArrayPropertySessionWithPropertyType

        public void testModifyStringArrayPropertySessionWithPropertyType()
                                                                  throws Exception
        Tests if modifying properties with Node.setProperty(String, String[], int) works with Session.save()
        Throws:
        Exception
      • testNewStringArrayPropertyParentWithPropertyType

        public void testNewStringArrayPropertyParentWithPropertyType()
                                                              throws Exception
        Tests if adding properties with Node.setProperty(String, String[], int) works with parentNode.save()
        Throws:
        Exception
      • testModifyStringArrayPropertyParentWithPropertyType

        public void testModifyStringArrayPropertyParentWithPropertyType()
                                                                 throws Exception
        Tests if modifying properties with Node.setProperty(String, String[], int) works with parentNode.save()
        Throws:
        Exception
      • testRemoveStringArrayPropertySessionWithPropertyType

        public void testRemoveStringArrayPropertySessionWithPropertyType()
                                                                  throws Exception
        Tests if removing a String[] property with Node.setProperty(String, null, int) works with Session.save()
        Throws:
        Exception
      • testRemoveStringArrayPropertyParentWithPropertyType

        public void testRemoveStringArrayPropertyParentWithPropertyType()
                                                                 throws Exception
        Tests if removing a String[] property with Node.setProperty(String, null, int) works with parentNode.save()
        Throws:
        Exception
      • testSetNullStringArrayWithPropertyType

        public void testSetNullStringArrayWithPropertyType()
                                                    throws Exception
        Tests if Node.setProperty(String, String[], int) saves an array of null values as an empty String[]
        Throws:
        Exception