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 classPostServletPrivilegesUpdateTest.TestEventListener
-
Field Summary
Fields Modifier and Type Field Description static StringTEST_BASE_PATHorg.junit.rules.TestNametestName
-
Constructor Summary
Constructors Constructor Description PostServletPrivilegesUpdateTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcleanup()voidsetup()voidtestUpdatePropertyPrivilegesAndEvents()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, InterruptedExceptionTest 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:
IOExceptionjavax.json.JsonExceptionjavax.jcr.RepositoryExceptionInterruptedException
-
-