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

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Mar 22 15:11:51 EDT 2007


Author: anil.saldhana at jboss.com
Date: 2007-03-22 15:11:51 -0400 (Thu, 22 Mar 2007)
New Revision: 61610

Modified:
   trunk/testsuite/src/main/org/jboss/test/pooled/test/BeanStressTestCase.java
Log:
JBAS-4233: use super.setUp and initialize base class variables

Modified: trunk/testsuite/src/main/org/jboss/test/pooled/test/BeanStressTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/pooled/test/BeanStressTestCase.java	2007-03-22 19:01:23 UTC (rev 61609)
+++ trunk/testsuite/src/main/org/jboss/test/pooled/test/BeanStressTestCase.java	2007-03-22 19:11:51 UTC (rev 61610)
@@ -62,8 +62,8 @@
    static boolean deployed = false;
    static int test = 0;
    static Date startDate = new Date();
-   public int NUM_THREADS = getThreadCount();
-   public int iterations = getIterationCount();
+   public int NUM_THREADS = 0;
+   public int iterations = 0;
    
    protected final String namingFactory =
    System.getProperty(Context.INITIAL_CONTEXT_FACTORY);
@@ -74,6 +74,13 @@
    public BeanStressTestCase(String name) {
       super(name);
    }
+
+   protected void setUp() throws Exception
+   {
+     super.setUp();
+     NUM_THREADS = getThreadCount();
+     iterations = getIterationCount();
+   }
    
 
    boolean failed = false;




More information about the jboss-cvs-commits mailing list