# | Line 235 | Line 235 | public class ForkJoinPoolTest extends JS | |
---|---|---|
235 | ForkJoinPool p = null; | |
236 | try { | |
237 | p = new ForkJoinPool(1); | |
238 | < | assertTrue(p.getPoolSize() == 0); |
238 | > | assertTrue(p.getActiveThreadCount() == 0); |
239 | Future<String> future = p.submit(new StringTask()); | |
240 | assertTrue(p.getPoolSize() == 1); | |
241 | ||
# | Line 320 | Line 320 | public class ForkJoinPoolTest extends JS | |
320 | Thread.sleep(MEDIUM_DELAY_MS); | |
321 | assertTrue(eh.catches > 0); | |
322 | } finally { | |
323 | + | p.shutdownNow(); |
324 | joinPool(p); | |
325 | } | |
326 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |