[jboss-cvs] JBossAS SVN: r61609 - trunk/testsuite/src/main/org/jboss/test/util/test.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Thu Mar 22 15:01:23 EDT 2007
Author: anil.saldhana at jboss.com
Date: 2007-03-22 15:01:23 -0400 (Thu, 22 Mar 2007)
New Revision: 61609
Modified:
trunk/testsuite/src/main/org/jboss/test/util/test/TimeoutFactoryMixedStressTestCase.java
Log:
JBAS-4233: use super.setUp and initialize base class variables
Modified: trunk/testsuite/src/main/org/jboss/test/util/test/TimeoutFactoryMixedStressTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/util/test/TimeoutFactoryMixedStressTestCase.java 2007-03-22 18:57:06 UTC (rev 61608)
+++ trunk/testsuite/src/main/org/jboss/test/util/test/TimeoutFactoryMixedStressTestCase.java 2007-03-22 19:01:23 UTC (rev 61609)
@@ -37,13 +37,21 @@
public class TimeoutFactoryMixedStressTestCase extends JBossTestCase
{
WaitableLong count = new WaitableLong(0);
- int iterationCount = getIterationCount();
- int threadCount = getThreadCount();
- long target = iterationCount * threadCount;
+ int iterationCount = 0;
+ int threadCount = 0;
TimeoutFactory factory = TimeoutFactory.getSingleton();
+ protected void setUp() throws Exception
+ {
+ super.setUp();
+ iterationCount = getIterationCount();
+ threadCount = getThreadCount();
+ }
+
+
public void testStress() throws Exception
{
+ long target = iterationCount * threadCount;
Thread[] threads = new Thread[threadCount];
for (int i = 0; i < threads.length; ++i)
threads[i] = new Thread(new MyRunnable(), "Test thread " + i);
More information about the jboss-cvs-commits
mailing list