You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by bu...@apache.org on 2015/05/27 17:13:26 UTC
svn commit: r952872 - in /websites/staging/sling/trunk/content: ./
documentation/development/sling-mock.html
Author: buildbot
Date: Wed May 27 15:13:26 2015
New Revision: 952872
Log:
Staging update by buildbot for sling
Modified:
websites/staging/sling/trunk/content/ (props changed)
websites/staging/sling/trunk/content/documentation/development/sling-mock.html
Propchange: websites/staging/sling/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Wed May 27 15:13:26 2015
@@ -1 +1 @@
-1681824
+1682056
Modified: websites/staging/sling/trunk/content/documentation/development/sling-mock.html
==============================================================================
--- websites/staging/sling/trunk/content/documentation/development/sling-mock.html (original)
+++ websites/staging/sling/trunk/content/documentation/development/sling-mock.html Wed May 27 15:13:26 2015
@@ -265,13 +265,6 @@ repository.</p>
<li>Takes some seconds for startup on the first access </li>
<li>All node types that are used when reading/writing data have to be registered</li>
</ul>
-<p><em>Remarks on JCR_JACKRABBIT type:</em></p>
-<ul>
-<li>The repository is not cleared for each unit test, so make sure us use a unique node path for each unit test.</li>
-<li>To import Sling content you have to fully register all node types required for the data</li>
-<li>The <a href="http://svn.apache.org/repos/asf/sling/trunk/bundles/commons/testing">sling/commons/testing</a> 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</li>
-</ul>
<p>To use this type you have to declare an additional dependency in your test project:</p>
<table class="codehilitetable"><tr><td class="linenos"><div class="linenodiv"><pre>1
2
@@ -286,6 +279,35 @@ repository.</p>
</td></tr></table>
<p>See latest version on the <a href="/downloads.cgi">downloads page</a>.</p>
+<p><strong>JCR_OAK</strong></p>
+<ul>
+<li>Uses a real JCR Jackrabbit Oak implementation based on the <code>MemoryNodeStore</code></li>
+<li>Full JCR/Sling features supported e.g. observations manager, transactions, versioning</li>
+<li>Uses the productive <a href="http://svn.apache.org/repos/asf/sling/trunk/bundles/jcr/resource">Sling JCR resource provider implementation</a> internally to do the Resource-JCR mapping</li>
+<li>Takes some seconds for startup on the first access </li>
+<li>All node types that are used when reading/writing data have to be registered</li>
+</ul>
+<p>To use this type you have to declare an additional dependency in your test project:</p>
+<table class="codehilitetable"><tr><td class="linenos"><div class="linenodiv"><pre>1
+2
+3
+4
+5</pre></div></td><td class="code"><div class="codehilite"><pre><span class="nt"><dependency></span>
+ <span class="nt"><groupId></span>org.apache.sling<span class="nt"></groupId></span>
+ <span class="nt"><artifactId></span>org.apache.sling.testing.sling-mock-oak<span class="nt"></artifactId></span>
+ <span class="nt"><scope></span>test<span class="nt"></scope></span>
+<span class="nt"></dependency></span>
+</pre></div>
+</td></tr></table>
+
+<p>This version is not yet released.</p>
+<p><em>Remarks on the JCR_JACKRABBIT and JCR_OAK types:</em></p>
+<ul>
+<li>The repository is not cleared for each unit test, so make sure us use a unique node path for each unit test.</li>
+<li>To import Sling content you have to fully register all node types required for the data</li>
+<li>The <a href="http://svn.apache.org/repos/asf/sling/trunk/bundles/commons/testing">sling/commons/testing</a> 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</li>
+</ul>
<h3 id="sling-resource-resolver">Sling Resource Resolver</h3>
<p>Example:</p>
<table class="codehilitetable"><tr><td class="linenos"><div class="linenodiv"><pre>1
@@ -555,7 +577,7 @@ resources) and imports the binary data t
<p>If you use the <code>SlingContext</code> JUnit rule you case just use <code>context.create()</code>.</p>
<div class="timestamp" style="margin-top: 30px; font-size: 80%; text-align: right;">
- Rev. 1680706 by sseifert on Wed, 20 May 2015 23:47:44 +0000
+ Rev. 1682056 by rombert on Wed, 27 May 2015 15:13:12 +0000
</div>
<div class="trademarkFooter">
Apache Sling, Sling, Apache, the Apache feather logo, and the Apache Sling project