|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jbenchmark.TestFeature
net.sf.jbenchmark.Test
Abstract superclass for all tests. Tests are the real exceutables that make up a real JBencmark test.
Constructor Summary | |
Test()
|
Method Summary | |
void |
addAssertion(Assertion assertion)
Adds an assertion. |
protected void |
addFeature(TestFeature feature)
Adds a feature to this group. |
void |
addResource(TestFeature resource)
Adds a resource. |
protected void |
doCleanup()
Allow tests to perform finish work without impacting on the times. |
protected void |
doInitialise()
Allow tests to perform start up work without impacting on the times. |
protected abstract TestResult |
doRun()
Executes the test. |
void |
finish()
Finishes up the test. |
protected TestContext |
getFeatureContext()
Returns the context to use for features of this test. |
java.lang.Object |
getResource(java.lang.Class resClass)
Given a specific class, locates the first instance encountered of all the resources that were added to this test instance. |
void |
run()
Executes the test. |
void |
setContext(TestContext context)
Sets the context for this feature. |
Methods inherited from class net.sf.jbenchmark.TestFeature |
getContext, getName, setName, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Test()
Method Detail |
public void setContext(TestContext context)
setContext
in class TestFeature
public void addAssertion(Assertion assertion)
protected void doInitialise() throws java.lang.Exception
java.lang.Exception
protected void doCleanup() throws java.lang.Exception
java.lang.Exception
public final void run()
run
in interface java.lang.Runnable
protected abstract TestResult doRun() throws java.lang.Exception
java.lang.Exception
public void addResource(TestFeature resource)
protected void addFeature(TestFeature feature)
protected TestContext getFeatureContext()
public void finish() throws java.lang.Exception
finish
in class TestFeature
java.lang.Exception
public java.lang.Object getResource(java.lang.Class resClass) throws java.lang.Exception
TestContext.getResource(java.lang.Class)
of the context
returned by TestFeature.getContext()
.
java.lang.Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |