FileDocCategorySizeDatePackage
NullOutputTest.javaAPI DocGlassfish v2 API3187Fri May 04 22:25:30 BST 2007com.sun.enterprise.cli.framework

NullOutputTest

public class NullOutputTest extends TestCase
author
Toby H Ferguson
version
$Revision: 1.5 $

Fields Summary
Constructors Summary
public NullOutputTest(String name)

        super(name);
    
Methods Summary
public static voidmain(java.lang.String[] args)

        if (args.length == 0){
            junit.textui.TestRunner.run(NullOutputTest.class);
        } else {
            junit.textui.TestRunner.run(makeSuite(args));
        }
    
private static junit.framework.TestSuitemakeSuite(java.lang.String[] args)

        final TestSuite ts = new TestSuite();
        for (int i = 0; i < args.length; i++){
            ts.addTest(new NullOutputTest(args[i]));
        }
        return ts;
    
private voidnyi()

        fail("Not Yet Implemented");
    
protected voidsetUp()

    
protected voidtearDown()

    
public voidtestIt()

        final NullOutput no = new NullOutput();
        final String m = "a message";
        final Object o = (Object) "an object";
        no.print(m);
        no.print(o);
        no.println(m);
        no.println(o);
        no.close();
        no.flush();
        no.close();
        no.println(m);