Package com.nt.udc.util.threadpool.test
Class PoolTest
java.lang.Object
com.nt.udc.util.threadpool.test.PoolTest
Title:
Copyright: Copyright (c)
Company: Nortel Networks
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlogDir()
static void
void
tests the pool with one taskvoid
tests the pool with mulitple tasksvoid
simple test to using the pool several times with one taskvoid
simple test to using the pool several times with 2 tasksvoid
test to see if an exception is thrown after shutdownvoid
void
test the pool when too many tasks are requested
-
Field Details
-
i
public static int i
-
-
Constructor Details
-
PoolTest
public PoolTest()
-
-
Method Details
-
createPool
-
createTask
-
logDir
-
getLogger
-
simpleTest1
public void simpleTest1()tests the pool with one task -
simpleTest2
public void simpleTest2()tests the pool with mulitple tasks -
tooManyTasksTest
public void tooManyTasksTest()test the pool when too many tasks are requested -
testMany1
public void testMany1()simple test to using the pool several times with one task -
testMany2
public void testMany2()simple test to using the pool several times with 2 tasks -
testShutdown
public void testShutdown()test to see if an exception is thrown after shutdown -
testSimpleShutdown
public void testSimpleShutdown() -
main
-