36 |
|
*/ |
37 |
|
public void testConstructorNPE() { |
38 |
|
try { |
39 |
< |
ExecutorCompletionService ecs = new ExecutorCompletionService(null); |
39 |
> |
new ExecutorCompletionService(null); |
40 |
|
shouldThrow(); |
41 |
|
} catch (NullPointerException success) {} |
42 |
|
} |
47 |
|
public void testConstructorNPE2() { |
48 |
|
try { |
49 |
|
ExecutorService e = Executors.newCachedThreadPool(); |
50 |
< |
ExecutorCompletionService ecs = new ExecutorCompletionService(e, null); |
50 |
> |
new ExecutorCompletionService(e, null); |
51 |
|
shouldThrow(); |
52 |
|
} catch (NullPointerException success) {} |
53 |
|
} |