Jetif v1.8.0

jetif.ext
Class ResultCollector

java.lang.Object
  extended byjetif.ext.ResultCollector
All Implemented Interfaces:
TestListener
Direct Known Subclasses:
ResultHolder

public class ResultCollector
extends Object
implements TestListener

This class ResultCollector represents a test listener which collect test result and store it in a SuiteResult object.

Author:
Vicky Wang
See Also:
SuiteResult

Field Summary
protected  SuiteResult suiteResult
           
 
Fields inherited from interface jetif.TestListener
DUMMY_LISTENER
 
Constructor Summary
ResultCollector()
           
 
Method Summary
 void beginSuite(String name, long timestamp)
          Recieve notification of the beginning of a suite
 void endCase(CaseResult result)
          Receive notification of the end of a test case.
 void endSuite(long timestamp)
          Receive notification of the end of a suite.
 SuiteResult getResult()
          Get the result object of current suite.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

suiteResult

protected SuiteResult suiteResult
Constructor Detail

ResultCollector

public ResultCollector()
Method Detail

beginSuite

public void beginSuite(String name,
                       long timestamp)
Description copied from interface: TestListener
Recieve notification of the beginning of a suite

Specified by:
beginSuite in interface TestListener
Parameters:
name - the name of the suite.
timestamp - the time stamp of the beginning

endCase

public void endCase(CaseResult result)
Description copied from interface: TestListener
Receive notification of the end of a test case. Note the beginCase(String) has been removed since version 1.6.0.

Specified by:
endCase in interface TestListener
Parameters:
result - result object of the test case.

endSuite

public void endSuite(long timestamp)
Description copied from interface: TestListener
Receive notification of the end of a suite.

Specified by:
endSuite in interface TestListener
Parameters:
timestamp - the time stamp of the endding

getResult

public SuiteResult getResult()
Get the result object of current suite.

Returns:
the suite result object.

Jetif v1.8.0

Copyright © 2004,2005 Vicky Wang - All Rights Reserved.