org.exolab.jmscts.core
Class TestStatistics

java.lang.Object
  |
  +--org.exolab.jmscts.core.TestStatistics

public class TestStatistics
extends java.lang.Object

This class maintains statistics for the test suite

Version:
$Revision: 1.4 $ $Date: 2004/01/31 13:44:24 $
Author:
Tim Anderson

Constructor Summary
TestStatistics()
           
 
Method Summary
 void begin(JMSTestCase test)
          Log the start of a test
 void end(JMSTestCase test)
          Log the end of a test
 void failed(JMSTestCase test, java.lang.Throwable cause, java.lang.Throwable rootCause)
          Log a test case failure
 Statistics getStatistics()
          Returns the test suite statistics
 void log(Statistic statistic)
          Log a statistic for the current test
 void log(StatisticType type, int count, long duration)
          Log a statistic for the current test
 void log(StatisticType type, int count, long start, long end)
          Log a statistic for the current test
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestStatistics

public TestStatistics()
Method Detail

log

public void log(Statistic statistic)
Log a statistic for the current test
Parameters:
statistic - the statistic to log

log

public void log(StatisticType type,
                int count,
                long start,
                long end)
Log a statistic for the current test
Parameters:
type - the type of the statistic
count - the number of iterations
start - the start time, in milliseconds
end - the end time, in milliseconds

log

public void log(StatisticType type,
                int count,
                long duration)
Log a statistic for the current test
Parameters:
type - the type of the statistic
count - the number of iterations
duration - the elapsed time, in milliseconds

getStatistics

public Statistics getStatistics()
Returns the test suite statistics
Returns:
the test suite statistics

begin

public void begin(JMSTestCase test)
Log the start of a test
Parameters:
test - the test case

end

public void end(JMSTestCase test)
Log the end of a test
Parameters:
test - the test that has completed

failed

public void failed(JMSTestCase test,
                   java.lang.Throwable cause,
                   java.lang.Throwable rootCause)
Log a test case failure
Parameters:
test - the test case
cause - the reason for the failure
rootCause - the root cause of the failure. May be null


Copyright © 2001-2004 JMS CTS Team. All Rights Reserved.