incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bdelacre...@apache.org
Subject svn commit: r1555898 - /sling/trunk/contrib/extensions/sling-pax-util/src/test/java/org/apache/sling/paxexam/util/SlingRepositoryTest.java
Date Mon, 06 Jan 2014 16:33:28 GMT
Author: bdelacretaz
Date: Mon Jan  6 16:33:27 2014
New Revision: 1555898

URL: http://svn.apache.org/r1555898
Log:
Explain how to create such tests

Modified:
    sling/trunk/contrib/extensions/sling-pax-util/src/test/java/org/apache/sling/paxexam/util/SlingRepositoryTest.java

Modified: sling/trunk/contrib/extensions/sling-pax-util/src/test/java/org/apache/sling/paxexam/util/SlingRepositoryTest.java
URL: http://svn.apache.org/viewvc/sling/trunk/contrib/extensions/sling-pax-util/src/test/java/org/apache/sling/paxexam/util/SlingRepositoryTest.java?rev=1555898&r1=1555897&r2=1555898&view=diff
==============================================================================
--- sling/trunk/contrib/extensions/sling-pax-util/src/test/java/org/apache/sling/paxexam/util/SlingRepositoryTest.java
(original)
+++ sling/trunk/contrib/extensions/sling-pax-util/src/test/java/org/apache/sling/paxexam/util/SlingRepositoryTest.java
Mon Jan  6 16:33:27 2014
@@ -32,7 +32,13 @@ import org.ops4j.pax.exam.spi.reactors.E
 import org.ops4j.pax.exam.spi.reactors.PerClass;
 
 /** Verify that our tests have access to a functional Sling instance,
- *  and demonstrate how a simple test is setup
+ *  and demonstrate how a simple test is setup.
+ *  
+ *  To create a test like this that runs against a full Sling launchpad 
+ *  instance, one only needs the pax exam setup in the pom and a test 
+ *  like this one that runs with @RunWith PaxExam, that provides a 
+ *  Configuration method and can access services or the BundleContext
+ *  using @Inject. 
  */
 @RunWith(PaxExam.class)
 @ExamReactorStrategy(PerClass.class)



Mime
View raw message