212213214215216217218219220
@Test public void testPrint1() { Composite composite = createComposite(); StringWriter sw = new StringWriter(); PrintUtil p = new PrintUtil(new PrintWriter(sw), true); p.print(composite); // System.out.println(sw.toString()); }
221222223224225226227228229
@Test public void testPrint2() { Composite composite = createComposite(); StringWriter sw = new StringWriter(); PrintUtil p = new PrintUtil(new PrintWriter(sw), false); p.print(composite); // System.out.println(sw.toString()); }