@Before public void setUpStreams() { System.setOut(new PrintStream(outContent)); System.setErr(new PrintStream(errContent)); jcon = JConsole.instance(); jcon.setCurrentDir(curDir); LSCom.setConsole(jcon); }