public void testInvokeAny5() throws Throwable {
  ExecutorService e=new ForkJoinPool(1);
  PoolCleaner cleaner=null;
  try {
    cleaner=cleaner(e);
    List<Callable<String>> l=new ArrayList<Callable<String>>();
    l.add(new NPETask());
    try {
      e.invokeAny(l);
      shouldThrow();
    }
 catch (    ExecutionException success) {
      assertTrue(success.getCause() instanceof NullPointerException);
    }
  }
  finally {
    if (cleaner != null) {
      cleaner.close();
    }
  }
}

public void testInvokeAny5 ( ) throws Throwable { ExecutorService e = new ForkJoinPool ( 1 ) ; PoolCleaner cleaner = null ; try { cleaner = cleaner ( e ) ; List < Callable < String > > l = new ArrayList < Callable < String > > ( ) ; l . add ( new NPETask ( ) ) ; try { e . invokeAny ( l ) ; shouldThrow ( ) ; } catch ( ExecutionException success ) { assertTrue ( success . getCause ( ) instanceof NullPointerException ) ; } } finally { if ( cleaner != null ) { cleaner . close ( ) ; } } }
invokeany ( c ) throws executionexception if no task in c completes
