/**
@exception T_Fail test failed.
*/
protected void runTests() throws T_Fail
{
AccessFactory store = null;
TransactionController tc = null;
boolean pass = false;
out.println("executing heap test");
// don't automatic boot this service if it gets left around
if (startParams == null) {
startParams = new Properties();
}
startParams.put(Property.NO_AUTO_BOOT, Boolean.TRUE.toString());
// remove the service directory to ensure a clean run
startParams.put(Property.DELETE_ON_CREATE, Boolean.TRUE.toString());
// see if we are testing encryption
startParams = T_Util.setEncryptionParam(startParams);
try {
store = (AccessFactory) Monitor.createPersistentService(getModuleToTestProtocolName(),
testService, startParams);
} catch (StandardException mse) {
throw T_Fail.exceptionFail(mse);
}
if (store == null) {
throw T_Fail.testFailMsg(getModuleToTestProtocolName() + " service not started.");
}
REPORT("(unitTestMain) Testing " + testService);
try {
tc = store.getTransaction(
ContextService.getFactory().getCurrentContextManager());
if (t_001(tc))
{
pass = true;