use of com.arjuna.ats.internal.jts.recovery.transactions.AssumedCompleteHeuristicServerTransaction in project narayana by jbosstm.
the class ServerFactoryUnitTest method testGetOSStatusWithAssumedCompleteHeuristicServerTransaction.
@Test
public void testGetOSStatusWithAssumedCompleteHeuristicServerTransaction() throws Exception {
final Uid uid = new Uid();
final OutputObjectState outputObjectState = new OutputObjectState();
final AssumedCompleteHeuristicServerTransaction transaction = new AssumedCompleteHeuristicServerTransaction(uid);
transaction.save_state(outputObjectState, ObjectType.ANDPERSISTENT);
StoreManager.getRecoveryStore().write_committed(uid, AssumedCompleteHeuristicServerTransaction.typeName(), outputObjectState);
Assert.assertEquals(Status.StatusCommitted, ServerFactory.getOSStatus(uid));
}
use of com.arjuna.ats.internal.jts.recovery.transactions.AssumedCompleteHeuristicServerTransaction in project narayana by jbosstm.
the class AssumedCompleteHeuristicServerTransactionUnitTest method before.
@Before
public void before() {
uid = new Uid();
transaction = new AssumedCompleteHeuristicServerTransaction(uid);
}
Aggregations