use of com.arjuna.ats.internal.jts.recovery.transactions.AssumedCompleteTransaction in project narayana by jbosstm.
the class AssumedCompleteUnitTest method testTransaction.
@Test
public void testTransaction() throws Exception {
AssumedCompleteTransaction tx = new AssumedCompleteTransaction(new Uid());
assertEquals(tx.getOriginalStatus(), Status.StatusNoTransaction);
assertTrue(tx.type() != null);
assertEquals(AssumedCompleteTransaction.typeName(), tx.type());
assertTrue(tx.toString() != null);
assertFalse(tx.assumeComplete());
assertEquals(tx.getLastActiveTime(), null);
OutputObjectState os = new OutputObjectState();
assertTrue(tx.save_state(os, ObjectType.ANDPERSISTENT));
InputObjectState is = new InputObjectState(os);
assertTrue(tx.restore_state(is, ObjectType.ANDPERSISTENT));
}
Aggregations