public void testExecuteNullRunnable(){
  ExecutorService e=new ForkJoinPool(1);
  PoolCleaner cleaner=null;
  try {
    cleaner=cleaner(e);
    try {
      @SuppressWarnings("unused") Future<?> future=e.submit((Runnable)null);
      shouldThrow();
    }
 catch (    NullPointerException success) {
    }
  }
  finally {
    if (cleaner != null) {
      cleaner.close();
    }
  }
}

public void testExecuteNullRunnable ( ) { ExecutorService e = new ForkJoinPool ( 1 ) ; PoolCleaner cleaner = null ; try { cleaner = cleaner ( e ) ; try { @ SuppressWarnings ( "unused" ) Future < ? > future = e . submit ( ( Runnable ) null ) ; shouldThrow ( ) ; } catch ( NullPointerException success ) { } } finally { if ( cleaner != null ) { cleaner . close ( ) ; } } }
execute ( null runnable ) throws nullpointerexception
