Search in sources :

Example 11 with ExtendedObject

use of com.hp.mwtests.ts.arjuna.resources.ExtendedObject in project narayana by jbosstm.

the class ExtendedUnitTest method testCadaver.

@Test
public void testCadaver() throws Exception {
    arjPropertyManager.getCoordinatorEnvironmentBean().setReadonlyOptimisation(false);
    AtomicAction A = new AtomicAction();
    AtomicAction B = new AtomicAction();
    ExtendedObject bo = new ExtendedObject();
    Uid id = bo.get_uid();
    bo = new ExtendedObject(id);
    A.begin();
    B.begin();
    bo.set(2);
    bo.terminate();
    B.commit();
    A.commit();
}
Also used : AtomicAction(com.arjuna.ats.arjuna.AtomicAction) Uid(com.arjuna.ats.arjuna.common.Uid) ExtendedObject(com.hp.mwtests.ts.arjuna.resources.ExtendedObject) Test(org.junit.Test)

Aggregations

ExtendedObject (com.hp.mwtests.ts.arjuna.resources.ExtendedObject)11 Test (org.junit.Test)11 OutputObjectState (com.arjuna.ats.arjuna.state.OutputObjectState)6 AtomicAction (com.arjuna.ats.arjuna.AtomicAction)5 Uid (com.arjuna.ats.arjuna.common.Uid)4 ParticipantStore (com.arjuna.ats.arjuna.objectstore.ParticipantStore)4 InputObjectState (com.arjuna.ats.arjuna.state.InputObjectState)4 PersistenceRecord (com.arjuna.ats.internal.arjuna.abstractrecords.PersistenceRecord)4 PrintWriter (java.io.PrintWriter)3 DisposeRecord (com.arjuna.ats.internal.arjuna.abstractrecords.DisposeRecord)2 ByteArrayOutputStream (java.io.ByteArrayOutputStream)2 ActivationRecord (com.arjuna.ats.internal.arjuna.abstractrecords.ActivationRecord)1 CadaverActivationRecord (com.arjuna.ats.internal.arjuna.abstractrecords.CadaverActivationRecord)1 CadaverRecord (com.arjuna.ats.internal.arjuna.abstractrecords.CadaverRecord)1 RecoveryRecord (com.arjuna.ats.internal.arjuna.abstractrecords.RecoveryRecord)1 StringWriter (java.io.StringWriter)1