Methods Summary |
---|
public static void | main(java.lang.String[] args)
if (args.length == 0){
junit.textui.TestRunner.run(UserOutputImplTest.class);
} else {
junit.textui.TestRunner.run(makeSuite(args));
}
|
private static junit.framework.TestSuite | makeSuite(java.lang.String[] args)
final TestSuite ts = new TestSuite();
for (int i = 0; i < args.length; i++){
ts.addTest(new UserOutputImplTest(args[i]));
}
return ts;
|
private void | nyi()
fail("Not Yet Implemented");
|
protected void | setUp()
|
protected void | tearDown()
|
public void | testBasicConstruction()
final ByteArrayOutputStreamWithClosure s = new ByteArrayOutputStreamWithClosure();
final UserOutputImpl ui = new UserOutputImpl(s, true);
ui.print("message");
ui.print((Object) "object");
ui.println("eol");
ui.println((Object) "eol2");
ui.flush();
ui.close();
assertEquals("messageobjecteol"+System.getProperty("line.separator") +"eol2"+System.getProperty("line.separator"), s.toString());
assertTrue(s.isClosed());
|
public void | testNullCOnstruction()
final UserOutputImpl ui = new UserOutputImpl(null, true);
ui.print("message");
ui.print((Object) "object");
ui.println("eol");
ui.println((Object) "eol2");
ui.flush();
ui.close();
|