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 2017/11/07 09:56:34 UTC
[sling-org-apache-sling-paxexam-util] 07/15: Explain how to create
such tests
This is an automated email from the ASF dual-hosted git repository.
rombert pushed a commit to annotated tag org.apache.sling.paxexam.util-1.0.2
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-paxexam-util.git
commit bd3205f964fd1e7bb8ad931a13877d4655028b42
Author: Bertrand Delacretaz <bd...@apache.org>
AuthorDate: Mon Jan 6 16:33:27 2014 +0000
Explain how to create such tests
git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/contrib/extensions/sling-pax-util@1555898 13f79535-47bb-0310-9956-ffa450edef68
---
.../java/org/apache/sling/paxexam/util/SlingRepositoryTest.java | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/src/test/java/org/apache/sling/paxexam/util/SlingRepositoryTest.java b/src/test/java/org/apache/sling/paxexam/util/SlingRepositoryTest.java
index fc7de75..c1a14c8 100644
--- a/src/test/java/org/apache/sling/paxexam/util/SlingRepositoryTest.java
+++ b/src/test/java/org/apache/sling/paxexam/util/SlingRepositoryTest.java
@@ -32,7 +32,13 @@ import org.ops4j.pax.exam.spi.reactors.ExamReactorStrategy;
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)
--
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.