74 |
|
} |
75 |
|
|
76 |
|
|
77 |
– |
|
77 |
|
/** |
78 |
|
* execute successfully executes a runnable |
79 |
|
*/ |
312 |
|
* getCompletedTaskCount increases, but doesn't overestimate, |
313 |
|
* when tasks complete |
314 |
|
*/ |
315 |
< |
public void testGetCompletedTaskCount()throws InterruptedException { |
315 |
> |
public void testGetCompletedTaskCount() throws InterruptedException { |
316 |
|
CustomExecutor p2 = new CustomExecutor(2); |
317 |
|
assertEquals(0, p2.getCompletedTaskCount()); |
318 |
|
p2.execute(new SmallRunnable()); |
715 |
|
public String call() { |
716 |
|
try { |
717 |
|
latch.await(); |
718 |
< |
} catch (InterruptedException ok) {} |
718 |
> |
} catch (InterruptedException quittingTime) {} |
719 |
|
return TEST_STRING; |
720 |
|
}}); |
721 |
|
l.add(null); |
899 |
|
public String call() { |
900 |
|
try { |
901 |
|
latch.await(); |
902 |
< |
} catch (InterruptedException ok) {} |
902 |
> |
} catch (InterruptedException quittingTime) {} |
903 |
|
return TEST_STRING; |
904 |
|
}}); |
905 |
|
l.add(null); |