use of com.arjuna.ats.internal.jts.utils.Helper in project narayana by jbosstm.
the class HelperUnitTest method test.
@Test
public void test() throws Exception {
Helper help = new Helper();
TransactionFactoryImple factory = new TransactionFactoryImple("test");
ControlImple tx = factory.createLocal(1000);
assertTrue(Helper.localAction(tx.getControl()) != null);
assertEquals(Helper.localControl(tx.getControl()), tx);
assertTrue(Helper.getUidCoordinator(tx.get_coordinator()) != null);
assertTrue(Helper.getUidCoordinator(tx.getControl()) != null);
assertTrue(Helper.isUidCoordinator(tx.get_coordinator()));
}
Aggregations