public void testInvokeAny4() throws Throwable {
  CountDownLatch latch=new CountDownLatch(1);
  ExecutorService e=new ForkJoinPool(1);
  PoolCleaner cleaner=null;
  try {
    cleaner=cleaner(e);
    List<Callable<String>> l=new ArrayList<Callable<String>>();
    l.add(latchAwaitingStringTask(latch));
    l.add(null);
    try {
      e.invokeAny(l);
      shouldThrow();
    }
 catch (    NullPointerException success) {
    }
    latch.countDown();
  }
  finally {
    if (cleaner != null) {
      cleaner.close();
    }
  }
}

public void testInvokeAny4 ( ) throws Throwable { CountDownLatch latch = new CountDownLatch ( 1 ) ; ExecutorService e = new ForkJoinPool ( 1 ) ; PoolCleaner cleaner = null ; try { cleaner = cleaner ( e ) ; List < Callable < String > > l = new ArrayList < Callable < String > > ( ) ; l . add ( latchAwaitingStringTask ( latch ) ) ; l . add ( null ) ; try { e . invokeAny ( l ) ; shouldThrow ( ) ; } catch ( NullPointerException success ) { } latch . countDown ( ) ; } finally { if ( cleaner != null ) { cleaner . close ( ) ; } } }
invokeany ( c ) throws nullpointerexception if c has null elements
