@Test public void testSyserr() { SysErrLogger.FAKE_LOGGER.ignoreLog(new Exception("Fake exception")); assertTrue(buf.length() == 0); SysErrLogger.FAKE_LOGGER.syserr(NOT_EMPTY); assertTrue(buf.length() > 0); buf.setLength(0); SysErrLogger.FAKE_LOGGER.syserr(); assertTrue(buf.length() > 0); buf.setLength(0); SysErrLogger.FAKE_LOGGER.syserr(NOT_EMPTY, new Exception("Fake exception")); assertTrue(buf.length() > NOT_EMPTY.length() + 5); buf.setLength(0); }
public void syserr(String message) { System.err.println("ERROR " + message); }
SysErrLogger { public void syserr(String message) { System.err.println("ERROR " + message); } }
SysErrLogger { public void syserr(String message) { System.err.println("ERROR " + message); } private  SysErrLogger(); }
SysErrLogger { public void syserr(String message) { System.err.println("ERROR " + message); } private  SysErrLogger(); void ignoreLog(Throwable throwable); void syserr(String message); void syserr(); void syserr(String message, Throwable e); }
SysErrLogger { public void syserr(String message) { System.err.println("ERROR " + message); } private  SysErrLogger(); void ignoreLog(Throwable throwable); void syserr(String message); void syserr(); void syserr(String message, Throwable e); static final SysErrLogger FAKE_LOGGER; }