incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bdelacre...@apache.org
Subject svn commit: r1489451 - /sling/trunk/launchpad/integration-tests/src/main/java/org/apache/sling/launchpad/webapp/integrationtest/ServerSideScriptsTest.java
Date Tue, 04 Jun 2013 14:06:32 GMT
Author: bdelacretaz
Date: Tue Jun  4 14:06:30 2013
New Revision: 1489451

URL: http://svn.apache.org/r1489451
Log:
Use SlingClient.mkdirs()

Modified:
    sling/trunk/launchpad/integration-tests/src/main/java/org/apache/sling/launchpad/webapp/integrationtest/ServerSideScriptsTest.java

Modified: sling/trunk/launchpad/integration-tests/src/main/java/org/apache/sling/launchpad/webapp/integrationtest/ServerSideScriptsTest.java
URL: http://svn.apache.org/viewvc/sling/trunk/launchpad/integration-tests/src/main/java/org/apache/sling/launchpad/webapp/integrationtest/ServerSideScriptsTest.java?rev=1489451&r1=1489450&r2=1489451&view=diff
==============================================================================
--- sling/trunk/launchpad/integration-tests/src/main/java/org/apache/sling/launchpad/webapp/integrationtest/ServerSideScriptsTest.java
(original)
+++ sling/trunk/launchpad/integration-tests/src/main/java/org/apache/sling/launchpad/webapp/integrationtest/ServerSideScriptsTest.java
Tue Jun  4 14:06:30 2013
@@ -248,22 +248,12 @@ public class ServerSideScriptsTest {
 
     @Before
     public void setup() throws Exception {
-
-        // create base path (if not existing)
-        final String[] pathSegments = ("apps/" + RESOURCE_TYPE_PREFIX).split("/");
-        String path = "";
-        for(final String segment : pathSegments) {
-            path = path + '/' + segment;
-            if ( !this.slingClient.exists(path) ) {
-                this.slingClient.createNode(path,
-                        "jcr:primaryType", "sling:Folder");
-            }
-        }
+        slingClient.mkdirs("/apps/" + RESOURCE_TYPE_PREFIX);
     }
 
     @After
     public void cleanup() throws Exception {
-        this.slingClient.delete("/apps/" + RESOURCE_TYPE_PREFIX);
+        slingClient.delete("/apps/" + RESOURCE_TYPE_PREFIX);
     }
 
     @Test



Mime
View raw message