Return-Path: X-Original-To: apmail-sling-commits-archive@www.apache.org Delivered-To: apmail-sling-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C192C10563 for ; Mon, 6 Jan 2014 16:34:10 +0000 (UTC) Received: (qmail 81180 invoked by uid 500); 6 Jan 2014 16:34:00 -0000 Delivered-To: apmail-sling-commits-archive@sling.apache.org Received: (qmail 81084 invoked by uid 500); 6 Jan 2014 16:33:56 -0000 Mailing-List: contact commits-help@sling.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@sling.apache.org Delivered-To: mailing list commits@sling.apache.org Received: (qmail 80813 invoked by uid 99); 6 Jan 2014 16:33:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Jan 2014 16:33:51 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Jan 2014 16:33:49 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 4FCC923889DA; Mon, 6 Jan 2014 16:33:28 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: commits@sling.apache.org From: bdelacretaz@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20140106163328.4FCC923889DA@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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)