Class PostServletPrivilegesUpdateTest
- java.lang.Object
-
- org.apache.sling.launchpad.webapp.integrationtest.servlets.post.PostServletPrivilegesUpdateTest
-
public class PostServletPrivilegesUpdateTest extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
PostServletPrivilegesUpdateTest.TestEventListener
-
Field Summary
Fields Modifier and Type Field Description static String
TEST_BASE_PATH
org.junit.rules.TestName
testName
-
Constructor Summary
Constructors Constructor Description PostServletPrivilegesUpdateTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cleanup()
void
setup()
void
testUpdatePropertyPrivilegesAndEvents()
Test for SLING-897 fix: 1.
-
-
-
Field Detail
-
TEST_BASE_PATH
public static final String TEST_BASE_PATH
- See Also:
- Constant Field Values
-
testName
public org.junit.rules.TestName testName
-
-
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
-
-