[jboss-cvs] JBossAS SVN: r71837 - trunk/testsuite/src/main/org/jboss/test/jca/test.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Apr 9 09:20:24 EDT 2008


Author: adrian at jboss.org
Date: 2008-04-09 09:20:24 -0400 (Wed, 09 Apr 2008)
New Revision: 71837

Modified:
   trunk/testsuite/src/main/org/jboss/test/jca/test/ContentiousInterleavingStressTestCase.java
   trunk/testsuite/src/main/org/jboss/test/jca/test/ContentiousRecyclingInterleavingStressTestCase.java
   trunk/testsuite/src/main/org/jboss/test/jca/test/RecyclingStickyStressTestCase.java
   trunk/testsuite/src/main/org/jboss/test/jca/test/RecyclingStickyWithContinuousPoisonThreadStressTestCase.java
   trunk/testsuite/src/main/org/jboss/test/jca/test/RecyclingStickyWithPoisonThreadStressTestCase.java
   trunk/testsuite/src/main/org/jboss/test/jca/test/UncontendedInterleavingStressTestCase.java
Log:
Fix the broken test and tweak the iteration counts so the tests don't take so long with default config

Modified: trunk/testsuite/src/main/org/jboss/test/jca/test/ContentiousInterleavingStressTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/jca/test/ContentiousInterleavingStressTestCase.java	2008-04-09 13:19:41 UTC (rev 71836)
+++ trunk/testsuite/src/main/org/jboss/test/jca/test/ContentiousInterleavingStressTestCase.java	2008-04-09 13:20:24 UTC (rev 71837)
@@ -40,6 +40,11 @@
    {
       return JBossTestCase.getDeploySetup(ContentiousInterleavingStressTestCase.class, "jca-tests.jar");
    }
+   
+   protected int getIterationCount()
+   {
+      return super.getIterationCount()/100;
+   }
 
    public void testIt() throws Throwable
    {

Modified: trunk/testsuite/src/main/org/jboss/test/jca/test/ContentiousRecyclingInterleavingStressTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/jca/test/ContentiousRecyclingInterleavingStressTestCase.java	2008-04-09 13:19:41 UTC (rev 71836)
+++ trunk/testsuite/src/main/org/jboss/test/jca/test/ContentiousRecyclingInterleavingStressTestCase.java	2008-04-09 13:20:24 UTC (rev 71837)
@@ -23,6 +23,10 @@
 
 import javax.resource.cci.Connection;
 
+import junit.framework.Test;
+
+import org.jboss.test.JBossTestCase;
+
 /**
  * Uncontended pooling stress test.
  * 
@@ -31,6 +35,15 @@
  */
 public class ContentiousRecyclingInterleavingStressTestCase extends AbstractContentiousRecyclingPoolingStressTest
 {
+   public static Test suite() throws Exception
+   {
+      return JBossTestCase.getDeploySetup(ContentiousRecyclingInterleavingStressTestCase.class, "jca-tests.jar");
+   }
+   
+   protected int getIterationCount()
+   {
+      return super.getIterationCount()/100;
+   }
 
    public void testIt() throws Throwable
    {

Modified: trunk/testsuite/src/main/org/jboss/test/jca/test/RecyclingStickyStressTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/jca/test/RecyclingStickyStressTestCase.java	2008-04-09 13:19:41 UTC (rev 71836)
+++ trunk/testsuite/src/main/org/jboss/test/jca/test/RecyclingStickyStressTestCase.java	2008-04-09 13:20:24 UTC (rev 71837)
@@ -39,6 +39,11 @@
    {
       return JBossTestCase.getDeploySetup(RecyclingStickyStressTestCase.class, "jca-tests.jar");
    }
+   
+   protected int getIterationCount()
+   {
+      return super.getIterationCount()/100;
+   }
 
    public boolean isSticky()
    {

Modified: trunk/testsuite/src/main/org/jboss/test/jca/test/RecyclingStickyWithContinuousPoisonThreadStressTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/jca/test/RecyclingStickyWithContinuousPoisonThreadStressTestCase.java	2008-04-09 13:19:41 UTC (rev 71836)
+++ trunk/testsuite/src/main/org/jboss/test/jca/test/RecyclingStickyWithContinuousPoisonThreadStressTestCase.java	2008-04-09 13:20:24 UTC (rev 71837)
@@ -39,6 +39,11 @@
    {
       return JBossTestCase.getDeploySetup(RecyclingStickyWithContinuousPoisonThreadStressTestCase.class, "jca-tests.jar");
    }
+   
+   protected int getIterationCount()
+   {
+      return super.getIterationCount()/100;
+   }
 
    public boolean isSticky()
    {

Modified: trunk/testsuite/src/main/org/jboss/test/jca/test/RecyclingStickyWithPoisonThreadStressTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/jca/test/RecyclingStickyWithPoisonThreadStressTestCase.java	2008-04-09 13:19:41 UTC (rev 71836)
+++ trunk/testsuite/src/main/org/jboss/test/jca/test/RecyclingStickyWithPoisonThreadStressTestCase.java	2008-04-09 13:20:24 UTC (rev 71837)
@@ -39,6 +39,11 @@
    {
       return JBossTestCase.getDeploySetup(RecyclingStickyWithPoisonThreadStressTestCase.class, "jca-tests.jar");
    }
+   
+   protected int getIterationCount()
+   {
+      return super.getIterationCount()/100;
+   }
 
    public boolean isSticky()
    {

Modified: trunk/testsuite/src/main/org/jboss/test/jca/test/UncontendedInterleavingStressTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/jca/test/UncontendedInterleavingStressTestCase.java	2008-04-09 13:19:41 UTC (rev 71836)
+++ trunk/testsuite/src/main/org/jboss/test/jca/test/UncontendedInterleavingStressTestCase.java	2008-04-09 13:20:24 UTC (rev 71837)
@@ -39,6 +39,11 @@
    {
       return JBossTestCase.getDeploySetup(UncontendedInterleavingStressTestCase.class, "jca-tests.jar");
    }
+   
+   protected int getIterationCount()
+   {
+      return super.getIterationCount()/100;
+   }
 
    public void testIt() throws Throwable
    {




More information about the jboss-cvs-commits mailing list