public class BasicUnitTestManager extends java.lang.Object implements UnitTestManager, org.apache.derby.iapi.services.monitor.ModuleControl
| Modifier and Type | Field and Description |
|---|---|
private static boolean |
alreadyRun |
private org.apache.derby.iapi.services.context.ContextService |
contextService |
private org.apache.derby.iapi.services.stream.HeaderPrintWriter |
currentOutput |
private java.util.Hashtable |
namesOfTests |
private org.apache.derby.iapi.services.stream.HeaderPrintWriter |
output |
private boolean |
performanceReportOn |
private boolean |
reportOutputOn |
private boolean |
runForever |
private int |
testDuration |
private int |
testType |
private java.util.Vector |
vectorOfTests |
MODULE, RUN_FOREVER, SKIP_UNIT_TESTS| Constructor and Description |
|---|
BasicUnitTestManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
boot(boolean create,
java.util.Properties startParams) |
private void |
emitAMessage(java.lang.String message)
emitAMessage
Convenience routine to emit messages.
|
private void |
findTests(java.util.Properties testList,
java.util.Properties startParams) |
void |
registerTest(UnitTest objectToTest,
java.lang.String testName)
register an object that has the UnitTest interface,
marking what type it has and its duration.
|
private boolean |
runATest(UnitTest aTest) |
boolean |
runTests()
run the tests.
|
boolean |
runTests(int testType,
int testDuration)
Convenience function to set the test type and duration
for the UnitTestManager and then run the tests.
|
void |
setPerformanceReportOn(boolean performanceReportOn)
specify whether performance statistics should be
gathered when tests are run.
|
void |
setTestDuration(int testDuration)
the test duration is set.
|
void |
setTestType(int testType)
the test duration is set.
|
void |
stop() |
private java.util.Vector vectorOfTests
private java.util.Hashtable namesOfTests
private static boolean alreadyRun
private org.apache.derby.iapi.services.stream.HeaderPrintWriter output
private org.apache.derby.iapi.services.stream.HeaderPrintWriter currentOutput
private int testType
private int testDuration
private boolean reportOutputOn
private boolean performanceReportOn
private org.apache.derby.iapi.services.context.ContextService contextService
private boolean runForever
public void boot(boolean create,
java.util.Properties startParams)
throws org.apache.derby.iapi.error.StandardException
boot in interface org.apache.derby.iapi.services.monitor.ModuleControlorg.apache.derby.iapi.error.StandardExceptionpublic void stop()
stop in interface org.apache.derby.iapi.services.monitor.ModuleControlpublic void registerTest(UnitTest objectToTest, java.lang.String testName)
UnitTestManagerregisterTest in interface UnitTestManagerprivate void findTests(java.util.Properties testList,
java.util.Properties startParams)
private void emitAMessage(java.lang.String message)
for supported durations.private boolean runATest(UnitTest aTest)
public boolean runTests()
UnitTestManagerrunTests in interface UnitTestManagerpublic boolean runTests(int testType,
int testDuration)
UnitTestManagerrunTests in interface UnitTestManagerUnitTestConstantspublic void setTestDuration(int testDuration)
UnitTestManagersetTestDuration in interface UnitTestManagerpublic void setTestType(int testType)
UnitTestManagersetTestType in interface UnitTestManagerpublic void setPerformanceReportOn(boolean performanceReportOn)
UnitTestManagersetPerformanceReportOn in interface UnitTestManagerApache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.