net.sf.jbenchmark
Class TestFeature

java.lang.Object
  extended bynet.sf.jbenchmark.TestFeature
Direct Known Subclasses:
BasicTestStatistics, ConnectionFactory, FileResultPublisher, FixedItemList, HttpServer, JDBCItemList, SQLCallArgument, Test, TestLogger, TestTimer

public class TestFeature
extends java.lang.Object

A test feature. Test features are the building blocks for defining a complete JBencmark test. The context of a test feature makes available other test features or resources that are required for a specific test feature to complete its work.

Version:
$Id: TestFeature.java,v 1.4 2004/07/02 01:11:34 twpatkua Exp $
Author:
Adam Murdoch

Constructor Summary
TestFeature()
           
 
Method Summary
 void finish()
          Finishes up the feature.
protected  TestContext getContext()
          Gets the test context.
 java.lang.String getName()
          Returns the name of this feature.
 void setContext(TestContext context)
          Sets the context for this feature.
 void setName(java.lang.String name)
          Sets the name of this feature.
 java.lang.String toString()
          Prints TestFeature.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestFeature

public TestFeature()
Method Detail

getName

public java.lang.String getName()
Returns the name of this feature.


setName

public void setName(java.lang.String name)
Sets the name of this feature.


toString

public java.lang.String toString()
Prints TestFeature.


setContext

public void setContext(TestContext context)
Sets the context for this feature.


getContext

protected TestContext getContext()
Gets the test context.


finish

public void finish()
            throws java.lang.Exception
Finishes up the feature.

Throws:
java.lang.Exception