|
|||||||||||
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.util.BasicTestStatistics
The basic test statistics is a more basic version from the TestTimer that reports on more generic items for all types of tests, not just web ones.
Field Summary | |
static java.text.Format[] |
COLUMN_FORMATS
Standard formats for the basic test statistics. |
static java.lang.String[] |
HEADINGS
Standard headings for the basic test statistics. |
static java.text.DecimalFormat |
STANDARD_DECIMAL_FORMAT
Format numbers to three decimal spots. |
static java.text.DateFormat |
STANDARD_TIME_FORMAT
Standard time format for reporting of times and not dates. |
Constructor Summary | |
BasicTestStatistics()
|
Method Summary | |
void |
finish()
Report all results when we have finished. |
void |
testFailed(Test test,
java.lang.Throwable throwable)
For this we want to count the numnber of test failures. |
void |
testFinished(TestResult result)
Further accumulate the statistics for the next test result. |
void |
testStart(Test test)
When a test is started, we don't need to monitor anything. |
Methods inherited from class net.sf.jbenchmark.TestFeature |
getContext, getName, setContext, setName, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.text.DecimalFormat STANDARD_DECIMAL_FORMAT
public static final java.text.DateFormat STANDARD_TIME_FORMAT
public static final java.text.Format[] COLUMN_FORMATS
public static final java.lang.String[] HEADINGS
Constructor Detail |
public BasicTestStatistics()
Method Detail |
public void testStart(Test test)
testStart
in interface TestListener
public void testFailed(Test test, java.lang.Throwable throwable)
testFailed
in interface TestListener
public void testFinished(TestResult result)
testFinished
in interface TestListener
public void finish() throws java.lang.Exception
finish
in class TestFeature
java.lang.Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |