@Test public void testInternalErrorNoThrowable() { final PrintStream stream = mock(PrintStream.class); final PrintStreamCaller caller = new PrintStreamCaller(stream); caller.internalError(message, null); verify(stream).println(PrintStreamCaller.CTX + ": " + message); }
@Override protected void internalError(String what, Throwable e) { stream.println(CTX + ": " + what); if (e != null) { e.printStackTrace(stream); } }
PrintStreamCaller extends DirectCaller { @Override protected void internalError(String what, Throwable e) { stream.println(CTX + ": " + what); if (e != null) { e.printStackTrace(stream); } } }
PrintStreamCaller extends DirectCaller { @Override protected void internalError(String what, Throwable e) { stream.println(CTX + ": " + what); if (e != null) { e.printStackTrace(stream); } } PrintStreamCaller(final PrintStream stream); }
PrintStreamCaller extends DirectCaller { @Override protected void internalError(String what, Throwable e) { stream.println(CTX + ": " + what); if (e != null) { e.printStackTrace(stream); } } PrintStreamCaller(final PrintStream stream);  }
PrintStreamCaller extends DirectCaller { @Override protected void internalError(String what, Throwable e) { stream.println(CTX + ": " + what); if (e != null) { e.printStackTrace(stream); } } PrintStreamCaller(final PrintStream stream);  static final String CTX; }