Hi,
I reverted these changes at http://svn.apache.org/r1578277 since they caused tests to fail [1]. We probably need to adapt the expectations of those tests first before we change the overall test setup, if at all.
Michael [1] http://markmail.org/message/btqcvpcwiljk3mob On 16.3.14 7:03 , [email protected] wrote:
Author: tripod Date: Sun Mar 16 18:03:13 2014 New Revision: 1578129 URL: http://svn.apache.org/r1578129 Log: @trivial add missing conflict providers Modified: jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/AbstractSecurityTest.java Modified: jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/AbstractSecurityTest.java URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/AbstractSecurityTest.java?rev=1578129&r1=1578128&r2=1578129&view=diff ============================================================================== --- jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/AbstractSecurityTest.java (original) +++ jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/AbstractSecurityTest.java Sun Mar 16 18:03:13 2014 @@ -40,6 +40,8 @@ import org.apache.jackrabbit.oak.api.Con import org.apache.jackrabbit.oak.api.ContentSession; import org.apache.jackrabbit.oak.api.Root; import org.apache.jackrabbit.oak.namepath.NamePathMapper; +import org.apache.jackrabbit.oak.plugins.commit.ConflictValidatorProvider; +import org.apache.jackrabbit.oak.plugins.commit.JcrConflictHandler; import org.apache.jackrabbit.oak.plugins.index.property.PropertyIndexEditorProvider; import org.apache.jackrabbit.oak.plugins.index.property.PropertyIndexProvider; import org.apache.jackrabbit.oak.plugins.index.reference.ReferenceEditorProvider; @@ -81,12 +83,14 @@ public abstract class AbstractSecurityTe public void before() throws Exception { Oak oak = new Oak() .with(new InitialContent()) + .with(JcrConflictHandler.JCR_CONFLICT_HANDLER) .with(new NamespaceEditorProvider()) .with(new ReferenceEditorProvider()) .with(new ReferenceIndexProvider()) .with(new PropertyIndexEditorProvider()) .with(new PropertyIndexProvider()) .with(new TypeEditorProvider()) + .with(new ConflictValidatorProvider()) .with(getSecurityProvider()); withEditors(oak); contentRepository = oak.createContentRepository();
