@Test public void prints_internal_errors_to_standard_output() { executor.execute(() -> { throw new RuntimeException("the-exception-message"); }); backingExecutor.processEventsUntilIdle(); String output = standardOutput.toString(); assertThat(output, containsString("Uncaught exception in thread")); assertThat(output, containsString("java.lang.RuntimeException: the-exception-message")); }
@Override public void execute(Runnable command) { backingExecutor.execute(new InternalErrorReporter(command)); }
InternalErrorReportingExecutor extends InternalErrorReporter implements Executor { @Override public void execute(Runnable command) { backingExecutor.execute(new InternalErrorReporter(command)); } }
InternalErrorReportingExecutor extends InternalErrorReporter implements Executor { @Override public void execute(Runnable command) { backingExecutor.execute(new InternalErrorReporter(command)); } InternalErrorReportingExecutor(Executor backingExecutor, SuiteListener listener, PrintStream out); }
InternalErrorReportingExecutor extends InternalErrorReporter implements Executor { @Override public void execute(Runnable command) { backingExecutor.execute(new InternalErrorReporter(command)); } InternalErrorReportingExecutor(Executor backingExecutor, SuiteListener listener, PrintStream out); @Override void execute(Runnable command); }
InternalErrorReportingExecutor extends InternalErrorReporter implements Executor { @Override public void execute(Runnable command) { backingExecutor.execute(new InternalErrorReporter(command)); } InternalErrorReportingExecutor(Executor backingExecutor, SuiteListener listener, PrintStream out); @Override void execute(Runnable command);  }