djencks 2005/02/01 14:10:29
Modified: modules/core/src/test/org/openejb/timer
TimerServiceImplTest.java
Log:
use new constructor
Revision Changes Path
1.5 +2 -6
openejb/modules/core/src/test/org/openejb/timer/TimerServiceImplTest.java
Index: TimerServiceImplTest.java
===================================================================
RCS file:
/home/projects/openejb/scm/openejb/modules/core/src/test/org/openejb/timer/TimerServiceImplTest.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- TimerServiceImplTest.java 11 Dec 2004 05:03:33 -0000 1.4
+++ TimerServiceImplTest.java 1 Feb 2005 19:10:29 -0000 1.5
@@ -108,11 +108,7 @@
TransactionManagerImpl transactionManager = new
TransactionManagerImpl(10 * 1000, null, null);
transactionContextManager = new
TransactionContextManager(transactionManager, transactionManager);
executableWorkFactory = new
TransactionalExecutorTaskFactory(transactionContextManager, 1);
- threadPool = new ThreadPool();
- threadPool.setPoolSize(5);
- threadPool.setKeepAliveTime(10000);
- threadPool.setPoolName("TestPool");
- threadPool.doStart();
+ threadPool = new ThreadPool(5, "TestPool", 10000,
this.getClass().getClassLoader());
WorkerPersistence workerPersistence = new VMWorkerPersistence();
threadPooledTimer = new ThreadPooledTimer(executableWorkFactory,
workerPersistence, threadPool, transactionContextManager);
threadPooledTimer.doStart();