Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 66375200BDD for ; Sat, 10 Dec 2016 09:35:46 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 64D14160B2B; Sat, 10 Dec 2016 08:35:46 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id ADA62160B1A for ; Sat, 10 Dec 2016 09:35:45 +0100 (CET) Received: (qmail 66925 invoked by uid 500); 10 Dec 2016 08:35:44 -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 66916 invoked by uid 99); 10 Dec 2016 08:35:44 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 10 Dec 2016 08:35:44 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 75DCBC7BFA for ; Sat, 10 Dec 2016 08:35:44 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.998 X-Spam-Level: X-Spam-Status: No, score=-1.998 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id iD9kYLXqb4DU for ; Sat, 10 Dec 2016 08:35:42 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 378785F474 for ; Sat, 10 Dec 2016 08:35:42 +0000 (UTC) Received: from svn01-us-west.apache.org (svn.apache.org [10.41.0.6]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 85EEEE08BD for ; Sat, 10 Dec 2016 08:35:41 +0000 (UTC) Received: from svn01-us-west.apache.org (localhost [127.0.0.1]) by svn01-us-west.apache.org (ASF Mail Server at svn01-us-west.apache.org) with ESMTP id 4B4B23A0016 for ; Sat, 10 Dec 2016 08:35:41 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1773506 - /sling/site/trunk/content/documentation/bundles/context-aware-configuration/context-aware-configuration.mdtext Date: Sat, 10 Dec 2016 08:35:40 -0000 To: commits@sling.apache.org From: sseifert@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20161210083541.4B4B23A0016@svn01-us-west.apache.org> archived-at: Sat, 10 Dec 2016 08:35:46 -0000 Author: sseifert Date: Sat Dec 10 08:35:40 2016 New Revision: 1773506 URL: http://svn.apache.org/viewvc?rev=1773506&view=rev Log: add documentation for slighty bindings values provider and unit test context mock plugin Modified: sling/site/trunk/content/documentation/bundles/context-aware-configuration/context-aware-configuration.mdtext Modified: sling/site/trunk/content/documentation/bundles/context-aware-configuration/context-aware-configuration.mdtext URL: http://svn.apache.org/viewvc/sling/site/trunk/content/documentation/bundles/context-aware-configuration/context-aware-configuration.mdtext?rev=1773506&r1=1773505&r2=1773506&view=diff ============================================================================== --- sling/site/trunk/content/documentation/bundles/context-aware-configuration/context-aware-configuration.mdtext (original) +++ sling/site/trunk/content/documentation/bundles/context-aware-configuration/context-aware-configuration.mdtext Sat Dec 10 08:35:40 2016 @@ -194,6 +194,15 @@ Example for setting up the unit test con } ... +In you project define a test dependency (additionally the sling-mock dependency is required): + + #!xml + + org.apache.sling + org.apache.sling.testing.caconfig-mock-plugin + test + + Full example: [Apache Sling Context-Aware Configuration Mock Plugin Test](https://github.com/apache/sling/blob/trunk/contrib/extensions/contextaware-config/testing/mocks/caconfig-mock-plugin/src/test/java/org/apache/sling/testing/mock/caconfig/ContextPluginsTest.java)