Author: buildbot Date: Wed Sep 23 13:24:27 2015 New Revision: 966484 Log: Staging update by buildbot for sling
Modified: websites/staging/sling/trunk/content/ (props changed) websites/staging/sling/trunk/content/documentation/bundles/org-apache-sling-junit-bundles.html Propchange: websites/staging/sling/trunk/content/ ------------------------------------------------------------------------------ --- cms:source-revision (original) +++ cms:source-revision Wed Sep 23 13:24:27 2015 @@ -1 +1 @@ -1704845 +1704846 Modified: websites/staging/sling/trunk/content/documentation/bundles/org-apache-sling-junit-bundles.html ============================================================================== --- websites/staging/sling/trunk/content/documentation/bundles/org-apache-sling-junit-bundles.html (original) +++ websites/staging/sling/trunk/content/documentation/bundles/org-apache-sling-junit-bundles.html Wed Sep 23 13:24:27 2015 @@ -165,7 +165,10 @@ very small, and both the client-side and with the appropriate IDE settings.</p> <p>The <code>Teleporter.getService</code> method takes an optional OSGi LDAP filter for service selection, like for example:</p> -<p>final StringTransformer t = teleporter.getService(StringTransformer.class, "(mode=uppercase)");</p> +<div class="codehilite"><pre><span class="n">final</span> <span class="n">StringTransformer</span> <span class="n">t</span> <span class="p">=</span> <span class="n">teleporter</span><span class="p">.</span><span class="n">getService</span><span class="p">(</span><span class="n">StringTransformer</span><span class="p">.</span><span class="n">class</span><span class="p">,</span> "<span class="p">(</span><span class="n">mode</span><span class="p">=</span><span class="n">uppercase</span><span class="p">)</span>"<span class="p">);</span> +</pre></div> + + <p>This teleporter mechanism is used in our integration tests, search for <code>TeleporterRule</code> in there for examples or look at the <a href="https://svn.apache.org/repos/asf/sling/trunk/launchpad/integration-tests/src/main/java/org/apache/sling/launchpad/webapp/integrationtest/teleporter"><code>integrationtest.teleporter</code></a> @@ -248,7 +251,7 @@ same request again. </p> but using the newer <code>TeleporterRule</code> described above is much simpler. As a result, this bundle should only be needed for existing tests that were written using its mechanisms. </p> <div class="timestamp" style="margin-top: 30px; font-size: 80%; text-align: right;"> - Rev. 1704845 by bdelacretaz on Wed, 23 Sep 2015 13:21:53 +0000 + Rev. 1704846 by bdelacretaz on Wed, 23 Sep 2015 13:24:19 +0000 </div> <div class="trademarkFooter"> Apache Sling, Sling, Apache, the Apache feather logo, and the Apache Sling project