Search in sources :

Example 1 with ServerTransaction

use of com.arjuna.ats.internal.jta.transaction.jts.subordinate.jca.coordinator.ServerTransaction in project narayana by jbosstm.

the class ServerTransactionUnitTest method test.

@Test
public void test() throws Exception {
    ServerTransaction st = new ServerTransaction(new Uid(), new XidImple(new Uid()));
    OutputObjectState os = new OutputObjectState();
    assertTrue(st.save_state(os, ObjectType.ANDPERSISTENT));
    InputObjectState is = new InputObjectState(os);
    assertTrue(st.restore_state(is, ObjectType.ANDPERSISTENT));
}
Also used : XidImple(com.arjuna.ats.jta.xa.XidImple) Uid(com.arjuna.ats.arjuna.common.Uid) InputObjectState(com.arjuna.ats.arjuna.state.InputObjectState) OutputObjectState(com.arjuna.ats.arjuna.state.OutputObjectState) ServerTransaction(com.arjuna.ats.internal.jta.transaction.jts.subordinate.jca.coordinator.ServerTransaction) Test(org.junit.Test)

Aggregations

Uid (com.arjuna.ats.arjuna.common.Uid)1 InputObjectState (com.arjuna.ats.arjuna.state.InputObjectState)1 OutputObjectState (com.arjuna.ats.arjuna.state.OutputObjectState)1 ServerTransaction (com.arjuna.ats.internal.jta.transaction.jts.subordinate.jca.coordinator.ServerTransaction)1 XidImple (com.arjuna.ats.jta.xa.XidImple)1 Test (org.junit.Test)1