Griffon 1.2.0

org.codehaus.griffon.test.report.junit
[Java] Class PlainFormatter

java.lang.Object
  org.apache.tools.ant.taskdefs.optional.junit.PlainJUnitResultFormatter
      org.codehaus.griffon.test.report.junit.PlainFormatter

public class PlainFormatter
extends PlainJUnitResultFormatter

JUnit plain text formatter that sanitises the stack traces generated by tests.


Field Summary
protected File file

protected String name

protected String systemError

protected String systemOutput

 
Constructor Summary
PlainFormatter(String name, File file)

 
Method Summary
void addError(Test test, Throwable throwable)

void addFailure(Test test, Throwable throwable)

void endTestSuite(JUnitTest suite)

void setOutput(OutputStream out)

void setSystemError(String out)

void setSystemOutput(String out)

protected void writeToFile(File file, String text)

 

Field Detail

file

protected File file


name

protected String name


systemError

protected String systemError


systemOutput

protected String systemOutput


 
Constructor Detail

PlainFormatter

public PlainFormatter(String name, File file)


 
Method Detail

addError

public void addError(Test test, Throwable throwable)


addFailure

public void addFailure(Test test, Throwable throwable)


endTestSuite

public void endTestSuite(JUnitTest suite)


setOutput

public void setOutput(OutputStream out)


setSystemError

public void setSystemError(String out)


setSystemOutput

public void setSystemOutput(String out)


writeToFile

protected void writeToFile(File file, String text)


 

Groovy Documentation