Class PropertyItemIsModifiedTest

    • Field Detail

      • testNode

        protected Node testNode
    • Constructor Detail

      • PropertyItemIsModifiedTest

        public PropertyItemIsModifiedTest()
    • Method Detail

      • testTransientNewPropertyItemIsModified

        public void testTransientNewPropertyItemIsModified()
                                                    throws RepositoryException
        Test if Item.isModified() returns false after a new PropertyItem is set (before node is saved (transient). That means the PropertyItem don't exists persistent).
        Throws:
        RepositoryException
        See Also:
        Item.isModified()
      • testPersistentNewPropertyItemIsModified

        public void testPersistentNewPropertyItemIsModified()
                                                     throws RepositoryException
        Test if Item.isModified() returns false after a new PropertyItem is set and saved (persistent). That means the PropertyItem exists persistently but isn't modified after save. This is equivalent to the test if Item.isModified() returns false for an already exixting and not modified PropertyItem.
        Throws:
        RepositoryException
        See Also:
        Item.isModified()
      • testTransientPropertyItemIsModified

        public void testTransientPropertyItemIsModified()
                                                 throws RepositoryException
        Test if Item.isModified() returns true for an already existing and modified PropertyItem (modifications aren't saved (transient)).
        Throws:
        RepositoryException
        See Also:
        Item.isModified()
      • testPersistentPropertyItemIsModified

        public void testPersistentPropertyItemIsModified()
                                                  throws RepositoryException
        Test if Item.isModified() returns false for an already exixting and modified PropertyItem after the current node is saved (persistent).
        Throws:
        RepositoryException
        See Also:
        Item.isModified()