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);
}