use of org.jboss.jbossts.qa.ArjunaCore.AbstractRecord.impl.BasicAbstractRecord in project narayana by jbosstm.
the class MemoryClient001 method Test.
public void Test() {
try {
setNumberOfCalls(3);
setNumberOfResources(2);
getClientThreshold(1);
BasicAbstractRecord[] mAbstractRecordList = new BasicAbstractRecord[mNumberOfResources];
// set up abstract records
for (int i = 0; i < mNumberOfResources; i++) {
mAbstractRecordList[i] = new BasicAbstractRecord();
}
// create container
Service01 mService = new Service01(mNumberOfResources);
startTx();
mService.setupOper();
mService.doWork(mMaxIteration);
// comit transaction
commit();
// get first memory reading.
getFirstReading();
mService = new Service01(mNumberOfResources);
// start new AtomicAction
startTx();
mService.setupOper();
mService.doWork(mMaxIteration);
// abort transaction
abort();
getSecondReading();
qaMemoryAssert();
} catch (Exception e) {
Fail("Error in MemoryClient001.test() :", e);
}
}
Aggregations