313 |
|
* getCompletedTaskCount increases, but doesn't overestimate, |
314 |
|
* when tasks complete |
315 |
|
*/ |
316 |
< |
public void testGetCompletedTaskCount()throws InterruptedException { |
316 |
> |
public void testGetCompletedTaskCount() throws InterruptedException { |
317 |
|
CustomExecutor p2 = new CustomExecutor(2); |
318 |
|
assertEquals(0, p2.getCompletedTaskCount()); |
319 |
|
p2.execute(new SmallRunnable()); |
716 |
|
public String call() { |
717 |
|
try { |
718 |
|
latch.await(); |
719 |
< |
} catch (InterruptedException ok) {} |
719 |
> |
} catch (InterruptedException quittingTime) {} |
720 |
|
return TEST_STRING; |
721 |
|
}}); |
722 |
|
l.add(null); |
900 |
|
public String call() { |
901 |
|
try { |
902 |
|
latch.await(); |
903 |
< |
} catch (InterruptedException ok) {} |
903 |
> |
} catch (InterruptedException quittingTime) {} |
904 |
|
return TEST_STRING; |
905 |
|
}}); |
906 |
|
l.add(null); |