@Test public void close_shouldCloseThePrintStream() throws Exception { destination.close(); assertTrue(output.isClosed()); }
@Override public void close() throws Exception { if (!streamIsSpecial()) { output.close(); } }
OutputStreamDestination implements Destination<T> { @Override public void close() throws Exception { if (!streamIsSpecial()) { output.close(); } } }
OutputStreamDestination implements Destination<T> { @Override public void close() throws Exception { if (!streamIsSpecial()) { output.close(); } } OutputStreamDestination(PrintStream output, StackTraceProcessor stackTraceProcessor); }
OutputStreamDestination implements Destination<T> { @Override public void close() throws Exception { if (!streamIsSpecial()) { output.close(); } } OutputStreamDestination(PrintStream output, StackTraceProcessor stackTraceProcessor); @Override void beginBatch(); @Override void publish(LogicalLogRecord<T> record); @Override void endBatch(); @Override void close(); PrintStream getOutput(); @Override StackTraceProcessor getStackTraceProcessor(); }
OutputStreamDestination implements Destination<T> { @Override public void close() throws Exception { if (!streamIsSpecial()) { output.close(); } } OutputStreamDestination(PrintStream output, StackTraceProcessor stackTraceProcessor); @Override void beginBatch(); @Override void publish(LogicalLogRecord<T> record); @Override void endBatch(); @Override void close(); PrintStream getOutput(); @Override StackTraceProcessor getStackTraceProcessor();  }