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 3E7CD200D5B for ; Tue, 7 Nov 2017 11:20:44 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 3D085160BED; Tue, 7 Nov 2017 10:20:44 +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 61FB2160C01 for ; Tue, 7 Nov 2017 11:20:43 +0100 (CET) Received: (qmail 11043 invoked by uid 500); 7 Nov 2017 10:20:42 -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 10864 invoked by uid 99); 7 Nov 2017 10:20:42 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Nov 2017 10:20:42 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id 9D59D87C38; Tue, 7 Nov 2017 10:20:41 +0000 (UTC) Date: Tue, 07 Nov 2017 10:20:44 +0000 To: "commits@sling.apache.org" Subject: [sling-org-apache-sling-testing-rules] 03/14: SLING-5727 Remove o.a.s.testing.tools dependency in o.a.s.testing.serversetup and adapt http code MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit From: rombert@apache.org In-Reply-To: <151005004136.5626.8644876053969050545@gitbox.apache.org> References: <151005004136.5626.8644876053969050545@gitbox.apache.org> X-Git-Host: gitbox.apache.org X-Git-Repo: sling-org-apache-sling-testing-rules X-Git-Refname: refs/tags/org.apache.sling.testing.rules-1.0.0 X-Git-Reftype: annotated tag X-Git-Rev: a699de10b84f003078aca2104ec76f94c3f7ccf8 X-Git-NotificationType: diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated Message-Id: <20171107102041.9D59D87C38@gitbox.apache.org> archived-at: Tue, 07 Nov 2017 10:20:44 -0000 This is an automated email from the ASF dual-hosted git repository. rombert pushed a commit to annotated tag org.apache.sling.testing.rules-1.0.0 in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-testing-rules.git commit a699de10b84f003078aca2104ec76f94c3f7ccf8 Author: Andrei Dulvac AuthorDate: Wed Jun 15 15:00:53 2016 +0000 SLING-5727 Remove o.a.s.testing.tools dependency in o.a.s.testing.serversetup and adapt http code git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/testing/junit/rules@1748593 13f79535-47bb-0310-9956-ffa450edef68 --- pom.xml | 12 ++++++------ .../apache/sling/testing/junit/rules/SlingInstanceRule.java | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/pom.xml b/pom.xml index d7596a4..7f99b59 100644 --- a/pom.xml +++ b/pom.xml @@ -73,10 +73,15 @@ org.apache.sling org.apache.sling.testing.clients 0.1.0-SNAPSHOT + + + org.apache.sling + org.apache.sling.testing.serversetup + 0.1.0-SNAPSHOT org.apache.sling - org.apache.sling.testing.tools + org.apache.sling.testing.clients @@ -111,10 +116,5 @@ 4.12 compile - - org.apache.sling - org.apache.sling.testing.tools - 1.0.12 - diff --git a/src/main/java/org/apache/sling/testing/junit/rules/SlingInstanceRule.java b/src/main/java/org/apache/sling/testing/junit/rules/SlingInstanceRule.java index 0e8439f..80d33a4 100644 --- a/src/main/java/org/apache/sling/testing/junit/rules/SlingInstanceRule.java +++ b/src/main/java/org/apache/sling/testing/junit/rules/SlingInstanceRule.java @@ -22,7 +22,7 @@ import org.apache.sling.testing.clients.SlingClient; import org.apache.sling.testing.clients.instance.InstanceConfiguration; import org.apache.sling.testing.junit.rules.instance.ExistingInstance; import org.apache.sling.testing.junit.rules.instance.Instance; -import org.apache.sling.testing.tools.sling.SlingTestBase; +import org.apache.sling.testing.serversetup.instance.SlingTestBase; import org.junit.rules.RuleChain; import org.junit.rules.TestRule; import org.junit.runner.Description; @@ -36,6 +36,7 @@ import java.net.URI; * Junit Rule that allows access to a Sling instance. * It is wrapped by a {@link SlingClassRule} */ +@SuppressWarnings("ALL") public class SlingInstanceRule implements TestRule { // Until we extract this logic from SlingTestBase, we can just reuse it here @@ -53,8 +54,7 @@ public class SlingInstanceRule implements TestRule { /** ExistingInstance for default instance */ public final Instance defaultInstance = new ExistingInstance().withRunMode("default").orDefault(DEFAULT_INSTANCE); - protected TestRule ruleChain = RuleChain.outerRule(slingClassRule) - .around(defaultInstance); + protected TestRule ruleChain = RuleChain.outerRule(slingClassRule).around(defaultInstance); public T getAdminClient(Class clientClass) { -- To stop receiving notification emails like this one, please contact "commits@sling.apache.org" .