use of com.arjuna.ats.internal.jta.recovery.arjunacore.XARecoveryResourceImple in project narayana by jbosstm.
the class XARecoveryResourceUnitTest method testRecoveryResource.
@Test
public void testRecoveryResource() {
XARecoveryResourceImple res = new XARecoveryResourceImple(new Uid());
assertEquals(res.getXAResource(), null);
assertEquals(res.recoverable(), XARecoveryResource.INCOMPLETE_STATE);
res = new XARecoveryResourceImple(new Uid(), new DummyXA(false));
assertEquals(res.recoverable(), XARecoveryResource.RECOVERY_REQUIRED);
assertEquals(res.recover(), XARecoveryResource.WAITING_FOR_RECOVERY);
}
Aggregations