incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bdelacre...@apache.org
Subject svn commit: r1308848 - /sling/trunk/launchpad/integration-tests/src/main/java/org/apache/sling/launchpad/webapp/integrationtest/servlets/post/CustomPostOperationTest.java
Date Tue, 03 Apr 2012 12:24:06 GMT
Author: bdelacretaz
Date: Tue Apr  3 12:24:06 2012
New Revision: 1308848

URL: http://svn.apache.org/viewvc?rev=1308848&view=rev
Log:
SLING-1725 - make sure each test gets its own node

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

Modified: sling/trunk/launchpad/integration-tests/src/main/java/org/apache/sling/launchpad/webapp/integrationtest/servlets/post/CustomPostOperationTest.java
URL: http://svn.apache.org/viewvc/sling/trunk/launchpad/integration-tests/src/main/java/org/apache/sling/launchpad/webapp/integrationtest/servlets/post/CustomPostOperationTest.java?rev=1308848&r1=1308847&r2=1308848&view=diff
==============================================================================
--- sling/trunk/launchpad/integration-tests/src/main/java/org/apache/sling/launchpad/webapp/integrationtest/servlets/post/CustomPostOperationTest.java
(original)
+++ sling/trunk/launchpad/integration-tests/src/main/java/org/apache/sling/launchpad/webapp/integrationtest/servlets/post/CustomPostOperationTest.java
Tue Apr  3 12:24:06 2012
@@ -16,18 +16,21 @@
  */
 package org.apache.sling.launchpad.webapp.integrationtest.servlets.post;
 
+import java.util.concurrent.atomic.AtomicInteger;
+
 import org.apache.commons.httpclient.methods.PostMethod;
 import org.apache.sling.commons.testing.integration.HttpTestBase;
 
 /** Test the custom PostOperation provided by the test-services module */
 public class CustomPostOperationTest extends HttpTestBase {
     private TestNode testNode;
+    private AtomicInteger counter = new AtomicInteger();
 
     @Override
     protected void setUp() throws Exception {
         super.setUp();
         
-        final String testPath = "/" + getClass().getSimpleName() + System.currentTimeMillis();
+        final String testPath = "/" + getClass().getSimpleName() + counter.incrementAndGet()
+ "_" + System.currentTimeMillis();
         testNode = new TestNode(HTTP_BASE_URL + testPath, null);
     }
     



Mime
View raw message