@Test public void testSubmitRunnableWithoutException() { Runnable runnable = spy(new MockRunnableWithoutException()); Future<?> future = executor.submit(runnable); Throwable caught = catchThrowable(() -> future.get()); assertThat(done).isEqualTo(true); verify(runnable).run(); assertThat(caught).isNull(); assertThat(handled).isNull(); List<Event> events = recorder.play(); assertThat(events).isEmpty(); }
@Override public Future<?> submit(Runnable task) { return executor.submit(createWrappedRunnable(task)); }
ExceptionHandlingAsyncTaskExecutor implements AsyncTaskExecutor,
    InitializingBean, DisposableBean { @Override public Future<?> submit(Runnable task) { return executor.submit(createWrappedRunnable(task)); } }
ExceptionHandlingAsyncTaskExecutor implements AsyncTaskExecutor,
    InitializingBean, DisposableBean { @Override public Future<?> submit(Runnable task) { return executor.submit(createWrappedRunnable(task)); } ExceptionHandlingAsyncTaskExecutor(AsyncTaskExecutor executor); }
ExceptionHandlingAsyncTaskExecutor implements AsyncTaskExecutor,
    InitializingBean, DisposableBean { @Override public Future<?> submit(Runnable task) { return executor.submit(createWrappedRunnable(task)); } ExceptionHandlingAsyncTaskExecutor(AsyncTaskExecutor executor); @Override void execute(Runnable task); @Override void execute(Runnable task, long startTimeout); @Override Future<?> submit(Runnable task); @Override Future<T> submit(Callable<T> task); @Override void destroy(); @Override void afterPropertiesSet(); }
ExceptionHandlingAsyncTaskExecutor implements AsyncTaskExecutor,
    InitializingBean, DisposableBean { @Override public Future<?> submit(Runnable task) { return executor.submit(createWrappedRunnable(task)); } ExceptionHandlingAsyncTaskExecutor(AsyncTaskExecutor executor); @Override void execute(Runnable task); @Override void execute(Runnable task, long startTimeout); @Override Future<?> submit(Runnable task); @Override Future<T> submit(Callable<T> task); @Override void destroy(); @Override void afterPropertiesSet();  }