public void testTimedInvokeAll2() throws InterruptedException {
  ExecutorService e=new ForkJoinPool(1);
  PoolCleaner cleaner=null;
  try {
    cleaner=cleaner(e);
    List<Future<String>> r=e.invokeAll(new ArrayList<Callable<String>>(),MEDIUM_DELAY_MS,MILLISECONDS);
    assertTrue(r.isEmpty());
  }
  finally {
    if (cleaner != null) {
      cleaner.close();
    }
  }
}

public void testTimedInvokeAll2 ( ) throws InterruptedException { ExecutorService e = new ForkJoinPool ( 1 ) ; PoolCleaner cleaner = null ; try { cleaner = cleaner ( e ) ; List < Future < String > > r = e . invokeAll ( new ArrayList < Callable < String > > ( ) , MEDIUM_DELAY_MS , MILLISECONDS ) ; assertTrue ( r . isEmpty ( ) ) ; } finally { if ( cleaner != null ) { cleaner . close ( ) ; } } }
timed invokeall ( empty collection ) returns empty collection
