Class PostServletPrivilegesUpdateTest


  • public class PostServletPrivilegesUpdateTest
    extends Object
    • Field Detail

      • testName

        public org.junit.rules.TestName testName
    • Constructor Detail

      • PostServletPrivilegesUpdateTest

        public PostServletPrivilegesUpdateTest()
    • Method Detail

      • testUpdatePropertyPrivilegesAndEvents

        public void testUpdatePropertyPrivilegesAndEvents()
                                                   throws IOException,
                                                          javax.json.JsonException,
                                                          javax.jcr.RepositoryException,
                                                          InterruptedException
        Test for SLING-897 fix: 1. Updating a property requires jcr:modifyProperties privilege on node. 2. When changing an existing property observers should receive a PROPERTY_CHANGED event instead of a PROPERTY_REMOVED event and a PROPERTY_ADDED event
        Throws:
        IOException
        javax.json.JsonException
        javax.jcr.RepositoryException
        InterruptedException