net.sf.jbenchmark
Class TestResult

java.lang.Object
  extended bynet.sf.jbenchmark.TestResult
Direct Known Subclasses:
HttpTestResult

public class TestResult
extends java.lang.Object

The result of a test includes the test and the duration that the test took to execute. The method of determining the duration of a test is up to each individual test.

Version:
$Id: TestResult.java,v 1.3 2004/06/30 01:49:17 twpatkua Exp $
Author:
Adam Murdoch

Constructor Summary
TestResult()
          Default constructor.
TestResult(Test test, long duration)
          Create a test result for the given test that specifies the duration of that test.
 
Method Summary
 long getDuration()
          Gets the duration of the test.
 Test getTest()
          Gets the test.
 void setDuration(long duration)
          Sets the duration for the test.
 void setTest(Test test)
          Sets the test.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestResult

public TestResult()
Default constructor.


TestResult

public TestResult(Test test,
                  long duration)
Create a test result for the given test that specifies the duration of that test.

Method Detail

setTest

public void setTest(Test test)
Sets the test.


setDuration

public void setDuration(long duration)
Sets the duration for the test.


getTest

public Test getTest()
Gets the test.


getDuration

public long getDuration()
Gets the duration of the test.