FileDocCategorySizeDatePackage
TestFormatter.javaAPI DocApache Ant 1.702959Wed Dec 13 06:16:22 GMT 2006org.apache.tools.ant.taskdefs.optional.junit

TestFormatter

public class TestFormatter extends Object implements JUnitResultFormatter

Fields Summary
private static final byte[]
grafitto
private OutputStream
out
Where to write the log to.
Constructors Summary
public TestFormatter()
Empty


          
      
    
Methods Summary
public voidaddError(junit.framework.Test test, java.lang.Throwable t)
Empty

    
public voidaddFailure(junit.framework.Test test, java.lang.Throwable t)
Empty

    
public voidaddFailure(junit.framework.Test test, junit.framework.AssertionFailedError t)
Empty

    
public voidendTest(junit.framework.Test test)
Empty

    
public voidendTestSuite(JUnitTest suite)

        if (out != null) {
            try {
                out.write(grafitto);
                out.flush();
            } catch (IOException ioex) {
                throw new BuildException("Unable to write output", ioex);
            } finally {
                if (out != System.out && out != System.err) {
                    try {
                        out.close();
                    } catch (IOException e) {
                        // ignore
                    }
                }
            }
        }
    
public voidsetOutput(java.io.OutputStream out)

        this.out = out;
    
public voidsetSystemError(java.lang.String err)
Empty

    
public voidsetSystemOutput(java.lang.String out)
Empty

    
public voidstartTest(junit.framework.Test t)
Empty

    
public voidstartTestSuite(JUnitTest suite)
Empty