I believe that 'System.setOut' is the method you wanted to call, to write
this test. Like this:
@Test
public void testNoArgCtor() {
ByteArrayOutputStream baos = new ByteArrayOutputStream();
PrintStream originalSystemOut = System.out;
System.setOut(new PrintStream(baos));
try {
WAX wax = new WAX();
wax.start("root").close();
assertEquals("<root/>", baos.toString());
} finally {
System.setOut(originalSystemOut);
}
}
Original issue reported on code.google.com by jeffgr...@charter.net on 14 Sep 2008 at 10:03
Original issue reported on code.google.com by
jeffgr...@charter.net
on 14 Sep 2008 at 10:03