Log { public static void printLine(String message) { if (!isDisabled()) { print(message + LINE_SEPARATOR); } }  static void print(String message); static void print(Object message); static void printLine(String message); static void printLine(); static void printConcat(Object... messages); static void printConcatLine(Object... messages); static void printLine(Object message); static void format(String format, Object... args); static void formatLine(String format, Object... args); static void setOutput(OutputStream _output); static OutputStream getOutput(); static void setDisabled(boolean _disabled); static boolean isDisabled(); static void disable(); static void enable();  }
@Test public void testPrintLine() throws IOException { Log.printLine("test test"); assertEquals("test test" + LINE_SEPARATOR, OUTPUT.toString()); OUTPUT.reset(); Log.printLine(123); assertEquals("123" + LINE_SEPARATOR, OUTPUT.toString()); OUTPUT.reset(); Log.printLine(123L); assertEquals("123" + LINE_SEPARATOR, OUTPUT.toString()); OUTPUT.reset(); Log.printLine(123.0); assertEquals("123.0" + LINE_SEPARATOR, OUTPUT.toString()); OUTPUT.reset(); }