net.sf.jzeno.unittesting
Class TestResults

java.lang.Object
  extended by net.sf.jzeno.unittesting.TestResults
All Implemented Interfaces:
java.io.Serializable, junit.framework.TestListener, TestRunnerListener

public class TestResults
extends java.lang.Object
implements TestRunnerListener, java.io.Serializable

See Also:
Serialized Form

Constructor Summary
TestResults()
           
 
Method Summary
 void addError(junit.framework.Test test, java.lang.Throwable t)
           
 void addFailure(junit.framework.Test test, junit.framework.AssertionFailedError t)
           
 void addFailure(junit.framework.Test test, java.lang.Throwable t)
           
protected  void addToTestCase(TestCaseMethodInfo info)
           
 void endTest(junit.framework.Test test)
           
 void finish()
          This method is called after the last test is executed.
 TestCaseMethodInfo getCurrentInfo()
           
 java.util.List getErrorMessages()
           
 java.util.List getTestCases()
           
 long getTimestamp()
           
 boolean isFailure()
           
 boolean isFilterTrace()
           
 boolean isFinished()
           
 boolean isSingleTest()
           
 boolean isStopped()
           
 void runFailed(java.lang.String message)
          This method is called when executing a test failed because the test class could not be loaded or an instance could not be created.
 void setCurrentInfo(TestCaseMethodInfo currentInfo)
           
 void setFailure(boolean failure)
           
 void setFilterTrace(boolean filterTrace)
           
 void setSingleTest(boolean singleTest)
           
 void setStopped()
           
 void setTestCases(java.util.List suiteInfo)
           
 void setTimestamp(long timestamp)
           
 void start(boolean singleTest)
          This method is called before the first test is executed.
 void startTest(junit.framework.Test test)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestResults

public TestResults()
Method Detail

start

public void start(boolean singleTest)
Description copied from interface: TestRunnerListener
This method is called before the first test is executed.

Specified by:
start in interface TestRunnerListener
Parameters:
singleTest - true, if only a single test is run

setStopped

public void setStopped()
Specified by:
setStopped in interface TestRunnerListener

isStopped

public boolean isStopped()

finish

public void finish()
Description copied from interface: TestRunnerListener
This method is called after the last test is executed.

Specified by:
finish in interface TestRunnerListener

isFinished

public boolean isFinished()

addError

public void addError(junit.framework.Test test,
                     java.lang.Throwable t)
Specified by:
addError in interface junit.framework.TestListener

addFailure

public void addFailure(junit.framework.Test test,
                       java.lang.Throwable t)

addFailure

public void addFailure(junit.framework.Test test,
                       junit.framework.AssertionFailedError t)
Specified by:
addFailure in interface junit.framework.TestListener

endTest

public void endTest(junit.framework.Test test)
Specified by:
endTest in interface junit.framework.TestListener

startTest

public void startTest(junit.framework.Test test)
Specified by:
startTest in interface junit.framework.TestListener

runFailed

public void runFailed(java.lang.String message)
Description copied from interface: TestRunnerListener
This method is called when executing a test failed because the test class could not be loaded or an instance could not be created.

Specified by:
runFailed in interface TestRunnerListener

getTimestamp

public long getTimestamp()

setTimestamp

public void setTimestamp(long timestamp)

getTestCases

public java.util.List getTestCases()

setTestCases

public void setTestCases(java.util.List suiteInfo)

getCurrentInfo

public TestCaseMethodInfo getCurrentInfo()

setCurrentInfo

public void setCurrentInfo(TestCaseMethodInfo currentInfo)

isFailure

public boolean isFailure()

setFailure

public void setFailure(boolean failure)

isFilterTrace

public boolean isFilterTrace()

setFilterTrace

public void setFilterTrace(boolean filterTrace)

isSingleTest

public boolean isSingleTest()

setSingleTest

public void setSingleTest(boolean singleTest)

getErrorMessages

public java.util.List getErrorMessages()

addToTestCase

protected void addToTestCase(TestCaseMethodInfo info)