14 |
|
|
15 |
|
public class ThreadPoolExecutorTest extends JSR166TestCase { |
16 |
|
public static void main(String[] args) { |
17 |
< |
junit.textui.TestRunner.run (suite()); |
17 |
> |
junit.textui.TestRunner.run(suite()); |
18 |
|
} |
19 |
|
public static Test suite() { |
20 |
|
return new TestSuite(ThreadPoolExecutorTest.class); |
846 |
|
|
847 |
|
|
848 |
|
/** |
849 |
< |
* execute (null) throws NPE |
849 |
> |
* execute(null) throws NPE |
850 |
|
*/ |
851 |
|
public void testExecuteNull() { |
852 |
|
ThreadPoolExecutor tpe = new ThreadPoolExecutor(1,2,LONG_DELAY_MS, MILLISECONDS,new ArrayBlockingQueue<Runnable>(10)); |
859 |
|
} |
860 |
|
|
861 |
|
/** |
862 |
< |
* setCorePoolSize of negative value throws IllegalArgumentException |
862 |
> |
* setCorePoolSize of negative value throws IllegalArgumentException |
863 |
|
*/ |
864 |
|
public void testCorePoolSizeIllegalArgumentException() { |
865 |
|
ThreadPoolExecutor tpe = |