Search in sources :

Example 1 with AssumedCompleteHeuristicServerTransaction

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));
}
Also used : Uid(com.arjuna.ats.arjuna.common.Uid) AssumedCompleteHeuristicServerTransaction(com.arjuna.ats.internal.jts.recovery.transactions.AssumedCompleteHeuristicServerTransaction) OutputObjectState(com.arjuna.ats.arjuna.state.OutputObjectState) Test(org.junit.Test)

Example 2 with AssumedCompleteHeuristicServerTransaction

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);
}
Also used : Uid(com.arjuna.ats.arjuna.common.Uid) AssumedCompleteHeuristicServerTransaction(com.arjuna.ats.internal.jts.recovery.transactions.AssumedCompleteHeuristicServerTransaction) Before(org.junit.Before)

Aggregations

Uid (com.arjuna.ats.arjuna.common.Uid)2 AssumedCompleteHeuristicServerTransaction (com.arjuna.ats.internal.jts.recovery.transactions.AssumedCompleteHeuristicServerTransaction)2 OutputObjectState (com.arjuna.ats.arjuna.state.OutputObjectState)1 Before (org.junit.Before)1 Test (org.junit.Test)1