incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bdelacre...@apache.org
Subject svn commit: r1524729 - /sling/trunk/launchpad/integration-tests/src/main/java/org/apache/sling/launchpad/webapp/integrationtest/ImmediateScriptActivationTest.java
Date Thu, 19 Sep 2013 13:08:34 GMT
Author: bdelacretaz
Date: Thu Sep 19 13:08:34 2013
New Revision: 1524729

URL: http://svn.apache.org/r1524729
Log:
SLING-2788 - use unique resource type in each test

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

Modified: sling/trunk/launchpad/integration-tests/src/main/java/org/apache/sling/launchpad/webapp/integrationtest/ImmediateScriptActivationTest.java
URL: http://svn.apache.org/viewvc/sling/trunk/launchpad/integration-tests/src/main/java/org/apache/sling/launchpad/webapp/integrationtest/ImmediateScriptActivationTest.java?rev=1524729&r1=1524728&r2=1524729&view=diff
==============================================================================
--- sling/trunk/launchpad/integration-tests/src/main/java/org/apache/sling/launchpad/webapp/integrationtest/ImmediateScriptActivationTest.java
(original)
+++ sling/trunk/launchpad/integration-tests/src/main/java/org/apache/sling/launchpad/webapp/integrationtest/ImmediateScriptActivationTest.java
Thu Sep 19 13:08:34 2013
@@ -17,6 +17,7 @@
 package org.apache.sling.launchpad.webapp.integrationtest;
 
 import java.io.IOException;
+import java.util.concurrent.atomic.AtomicInteger;
 
 /** Upload many different scripts in sequence and verify that they are immediately
  *  available to render content.
@@ -24,6 +25,13 @@ import java.io.IOException;
 public class ImmediateScriptActivationTest extends AbstractSlingResourceTypeRenderingTest
{
 
     public static final int LOOP_COUNT = 10;
+    private final AtomicInteger counter = new AtomicInteger();
+    
+    @Override
+    protected void setUp() throws Exception {
+        slingResourceType = getClass().getSimpleName() + "." + counter.incrementAndGet();
+        super.setUp();
+    }
     
     private void assertScriptActivation(String testId, String testScript, String extension,
String expectedContent) throws IOException {
         final String testUrl = displayUrl + "." + testId + ".html";



Mime
View raw message