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/09/29 00:21:41 UTC
svn commit: r967124 - in /websites/staging/sling/trunk/content: ./
documentation/development/sling-mock.html
Author: buildbot
Date: Mon Sep 28 22:21:40 2015
New Revision: 967124
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 Mon Sep 28 22:21:40 2015
@@ -1 +1 @@
-1705641
+1705788
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 Mon Sep 28 22:21:40 2015
@@ -279,13 +279,13 @@ repository.</p>
<li>The performance of this resource resolver type depends on the resource provider registered.</li>
<li>This is useful if you want to test your own resource provides mapped to root without any JCR.</li>
</ul>
-<p><strong>JCR_JACKRABBIT</strong></p>
+<p><strong>JCR_OAK</strong></p>
<ul>
-<li>Uses a real JCR Jackrabbit implementation (not Oak) as provided by <a href="http://svn.apache.org/repos/asf/sling/trunk/bundles/commons/testing">sling/commons/testing</a></li>
+<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>
+<li>Takes some seconds for startup on the first access</li>
+<li>Node types defined in OSGi bundle header 'Sling-Nodetypes' found in MANIFEST.MF files in the classpath are registered automatically.</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
@@ -294,20 +294,20 @@ repository.</p>
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-jackrabbit<span class="nt"></artifactId></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>See latest version on the <a href="/downloads.cgi">downloads page</a>.</p>
-<p><strong>JCR_OAK</strong></p>
+<p><strong>JCR_JACKRABBIT</strong></p>
<ul>
-<li>Uses a real JCR Jackrabbit Oak implementation based on the <code>MemoryNodeStore</code></li>
+<li>Uses a real JCR Jackrabbit implementation (not Oak) as provided by <a href="http://svn.apache.org/repos/asf/sling/trunk/bundles/commons/testing">sling/commons/testing</a></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>
+<li>Node types defined in OSGi bundle header 'Sling-Nodetypes' found in MANIFEST.MF files in the classpath are registered automatically.</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
@@ -316,17 +316,16 @@ repository.</p>
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"><artifactId></span>org.apache.sling.testing.sling-mock-jackrabbit<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>
+<p>See latest version on the <a href="/downloads.cgi">downloads page</a>.</p>
+<p><em>Remarks on the JCR_JACKRABBIT type:</em></p>
<ul>
-<li>The repository is not cleared for each unit test, so make sure to 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 repository is not cleared for each unit test, so make sure to use a unique node path for each unit test. You may use the <code>uniquePath()</code> helper object of the SlingContext rule for this.</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>
@@ -599,7 +598,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. 1703847 by sseifert on Fri, 18 Sep 2015 13:38:24 +0000
+ Rev. 1705788 by sseifert on Mon, 28 Sep 2015 22:21:19 +0000
</div>
<div class="trademarkFooter">
Apache Sling, Sling, Apache, the Apache feather logo, and the Apache Sling project