@Test public void prints_internal_errors_to_standard_output() { failureHandler.uncaughtException("the-actor", "the-message", new Throwable("the-exception-message")); String output = standardOutput.toString(); assertThat(output, containsString("Uncaught exception in thread")); assertThat(output, containsString("java.lang.Throwable: the-exception-message")); }
@Override public void uncaughtException(Object actor, Object message, Throwable exception) { reportInternalError("Uncaught exception in thread " + Thread.currentThread().getName() + " from " + actor + " when processing " + message, exception); }
InternalErrorReportingFailureHandler extends InternalErrorReporter implements FailureHandler { @Override public void uncaughtException(Object actor, Object message, Throwable exception) { reportInternalError("Uncaught exception in thread " + Thread.currentThread().getName() + " from " + actor + " when processing " + message, exception); } }
InternalErrorReportingFailureHandler extends InternalErrorReporter implements FailureHandler { @Override public void uncaughtException(Object actor, Object message, Throwable exception) { reportInternalError("Uncaught exception in thread " + Thread.currentThread().getName() + " from " + actor + " when processing " + message, exception); } InternalErrorReportingFailureHandler(SuiteListener listener, PrintStream out); }
InternalErrorReportingFailureHandler extends InternalErrorReporter implements FailureHandler { @Override public void uncaughtException(Object actor, Object message, Throwable exception) { reportInternalError("Uncaught exception in thread " + Thread.currentThread().getName() + " from " + actor + " when processing " + message, exception); } InternalErrorReportingFailureHandler(SuiteListener listener, PrintStream out); @Override void uncaughtException(Object actor, Object message, Throwable exception); }
InternalErrorReportingFailureHandler extends InternalErrorReporter implements FailureHandler { @Override public void uncaughtException(Object actor, Object message, Throwable exception) { reportInternalError("Uncaught exception in thread " + Thread.currentThread().getName() + " from " + actor + " when processing " + message, exception); } InternalErrorReportingFailureHandler(SuiteListener listener, PrintStream out); @Override void uncaughtException(Object actor, Object message, Throwable exception);  }