User: jung
Date: 00/12/22 00:34:50
Modified: src/de/infor/ce/util/test ThreadPool.java
Log:
began with exception redesign (messages+embedded throwables).
added a convenient logger console abstraction.
generic Environment.java for configuring packages.
some refactoring of the http package
began move to LGPL
Revision Changes Path
1.3 +8 -21 zoap/src/de/infor/ce/util/test/ThreadPool.java
Index: ThreadPool.java
===================================================================
RCS file: /products/cvs/ejboss/zoap/src/de/infor/ce/util/test/ThreadPool.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- ThreadPool.java 2000/12/04 12:35:54 1.2
+++ ThreadPool.java 2000/12/22 08:34:50 1.3
@@ -1,5 +1,5 @@
/*
- * $Id: ThreadPool.java,v 1.2 2000/12/04 12:35:54 jung Exp $
+ * $Id: ThreadPool.java,v 1.3 2000/12/22 08:34:50 jung Exp $
* Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
* D-66299 Friedrichsthal, Germany. All Rights Reserved.
*
@@ -48,7 +48,7 @@
* A unit test for checking low-level features of the threadpool
* @see <related>
* @author $Author: jung $
- * @version $Revision: 1.2 $
+ * @version $Revision: 1.3 $
*/
public class ThreadPool extends junit.framework.TestCase {
@@ -73,9 +73,12 @@
de.infor.ce.util.ThreadPool threadPool;
+ de.infor.ce.util.PooledThreadLocal threadLocal;
+
public void setUp() {
threadPool=new de.infor.ce.util.ThreadPool(32,
false,"pool",false);
+ threadLocal=new de.infor.ce.util.PooledThreadLocal();
running=true;
}
@@ -102,6 +105,9 @@
class GoodTask implements Runnable {
public void run() {
+ if(threadLocal.get()!=null)
+ fail("threadlocal has not been cleared after reuse");
+ threadLocal.set(new Object());
}
}
@@ -137,32 +143,4 @@
}
} // ThreadPool
-
-/*
- * $Log: ThreadPool.java,v $
- * Revision 1.2 2000/12/04 12:35:54 jung
- * adopted to latest jboss container,
- *
- * added decimal and date
- *
- * removed some problems due to forward-referencing in meta-data
- *
- * added serialisation policy
- *
- * Revision 1.1.1.1 2000/08/10 21:06:50 jung
- * Initial import.
- *
- *
- * Revision 1.1.2.1 2000/07/13 12:48:16 jung
- * added unit test directory for utils.
- *
- * added unit test for threadpool
- *
- * Revision 1.1.1.1 2000/07/06 14:11:27 jung
- * Import of a pre beta version of ZOAP source with a new directory structure,
- * ant-based make, apache-kind of license, etc.
- *
- * jars are coming later because of cvs-history reasons.
- *
- */