Search in sources :

Example 1 with GenericRecoveryCoordinator

use of com.arjuna.ats.internal.jts.orbspecific.recovery.recoverycoordinators.GenericRecoveryCoordinator in project narayana by jbosstm.

the class RecoveryCoordinatorUnitTest method testGeneric.

@Test
public void testGeneric() throws Exception {
    GenericRecoveryCoordinator rec = new GenericRecoveryCoordinator(new Uid(), new Uid(), new Uid(), false);
    rec.replay_completion(null);
    assertTrue(GenericRecoveryCoordinator.makeId(new Uid(), new Uid(), new Uid(), true) != null);
    assertEquals(GenericRecoveryCoordinator.reconstruct("foobar"), null);
}
Also used : Uid(com.arjuna.ats.arjuna.common.Uid) GenericRecoveryCoordinator(com.arjuna.ats.internal.jts.orbspecific.recovery.recoverycoordinators.GenericRecoveryCoordinator) Test(org.junit.Test)

Aggregations

Uid (com.arjuna.ats.arjuna.common.Uid)1 GenericRecoveryCoordinator (com.arjuna.ats.internal.jts.orbspecific.recovery.recoverycoordinators.GenericRecoveryCoordinator)1 Test (org.junit.Test)1