30 |
|
|
31 |
|
public class AbstractExecutorServiceTest extends JSR166TestCase { |
32 |
|
public static void main(String[] args) { |
33 |
< |
junit.textui.TestRunner.run(suite()); |
33 |
> |
main(suite(), args); |
34 |
|
} |
35 |
|
public static Test suite() { |
36 |
|
return new TestSuite(AbstractExecutorServiceTest.class); |
167 |
|
* execute(null runnable) throws NPE |
168 |
|
*/ |
169 |
|
public void testExecuteNullRunnable() { |
170 |
+ |
ExecutorService e = new DirectExecutorService(); |
171 |
|
try { |
171 |
– |
ExecutorService e = new DirectExecutorService(); |
172 |
|
e.submit((Runnable) null); |
173 |
|
shouldThrow(); |
174 |
|
} catch (NullPointerException success) {} |
178 |
|
* submit(null callable) throws NPE |
179 |
|
*/ |
180 |
|
public void testSubmitNullCallable() { |
181 |
+ |
ExecutorService e = new DirectExecutorService(); |
182 |
|
try { |
182 |
– |
ExecutorService e = new DirectExecutorService(); |
183 |
|
e.submit((Callable) null); |
184 |
|
shouldThrow(); |
185 |
|
} catch (NullPointerException success) {} |