sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From romb...@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
Date Tue, 07 Nov 2017 10:20:44 GMT
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 <dulvac@apache.org>
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 @@
             <groupId>org.apache.sling</groupId>
             <artifactId>org.apache.sling.testing.clients</artifactId>
             <version>0.1.0-SNAPSHOT</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.sling</groupId>
+            <artifactId>org.apache.sling.testing.serversetup</artifactId>
+            <version>0.1.0-SNAPSHOT</version>
             <exclusions>
                 <exclusion>
                     <groupId>org.apache.sling</groupId>
-                    <artifactId>org.apache.sling.testing.tools</artifactId>
+                    <artifactId>org.apache.sling.testing.clients</artifactId>
                 </exclusion>
             </exclusions>
         </dependency>
@@ -111,10 +116,5 @@
             <version>4.12</version>
             <scope>compile</scope>
         </dependency>
-        <dependency>
-            <groupId>org.apache.sling</groupId>
-            <artifactId>org.apache.sling.testing.tools</artifactId>
-            <version>1.0.12</version>
-        </dependency>
     </dependencies>
 </project>
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 extends SlingClient> T getAdminClient(Class<T> clientClass) {

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <commits@sling.apache.org>.

Mime
View raw message