You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2015/05/27 17:13:13 UTC
svn commit: r1682056 -
/sling/site/trunk/content/documentation/development/sling-mock.mdtext
Author: rombert
Date: Wed May 27 15:13:12 2015
New Revision: 1682056
URL: http://svn.apache.org/r1682056
Log:
SLING-4605 - Add support for an Oak resource resolver type mock
Modified:
sling/site/trunk/content/documentation/development/sling-mock.mdtext
Modified: sling/site/trunk/content/documentation/development/sling-mock.mdtext
URL: http://svn.apache.org/viewvc/sling/site/trunk/content/documentation/development/sling-mock.mdtext?rev=1682056&r1=1682055&r2=1682056&view=diff
==============================================================================
--- sling/site/trunk/content/documentation/development/sling-mock.mdtext (original)
+++ sling/site/trunk/content/documentation/development/sling-mock.mdtext Wed May 27 15:13:12 2015
@@ -144,13 +144,6 @@ Resource resolver types currently suppor
* Takes some seconds for startup on the first access
* All node types that are used when reading/writing data have to be registered
-_Remarks on JCR_JACKRABBIT type:_
-
-* The repository is not cleared for each unit test, so make sure us use a unique node path for each unit test.
-* To import Sling content you have to fully register all node types required for the data
-* The [sling/commons/testing][sling-comons-testing] dependency introduces a lot of further dependencies from
- jackrabbit and others, be careful that they do not conflict and are imported in the right order in your test project
-
To use this type you have to declare an additional dependency in your test project:
#!xml
@@ -162,6 +155,33 @@ To use this type you have to declare an
See latest version on the [downloads page](/downloads.cgi).
+**JCR_OAK**
+
+* Uses a real JCR Jackrabbit Oak implementation based on the `MemoryNodeStore`
+* Full JCR/Sling features supported e.g. observations manager, transactions, versioning
+* Uses the productive [Sling JCR resource provider implementation][jcr-resource] internally to do the Resource-JCR mapping
+* Takes some seconds for startup on the first access
+* All node types that are used when reading/writing data have to be registered
+
+To use this type you have to declare an additional dependency in your test project:
+
+ #!xml
+ <dependency>
+ <groupId>org.apache.sling</groupId>
+ <artifactId>org.apache.sling.testing.sling-mock-oak</artifactId>
+ <scope>test</scope>
+ </dependency>
+
+This version is not yet released.
+
+_Remarks on the JCR_JACKRABBIT and JCR_OAK types:_
+
+* The repository is not cleared for each unit test, so make sure us use a unique node path for each unit test.
+* To import Sling content you have to fully register all node types required for the data
+* The [sling/commons/testing][sling-comons-testing] dependency introduces a lot of further dependencies from
+ jackrabbit and others, be careful that they do not conflict and are imported in the right order in your test project
+
+
### Sling Resource Resolver