Search in sources :

Example 1 with Helper

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()));
}
Also used : Helper(com.arjuna.ats.internal.jts.utils.Helper) TransactionFactoryImple(com.arjuna.ats.internal.jts.orbspecific.TransactionFactoryImple) ControlImple(com.arjuna.ats.internal.jts.orbspecific.ControlImple) Test(org.junit.Test)

Aggregations

ControlImple (com.arjuna.ats.internal.jts.orbspecific.ControlImple)1 TransactionFactoryImple (com.arjuna.ats.internal.jts.orbspecific.TransactionFactoryImple)1 Helper (com.arjuna.ats.internal.jts.utils.Helper)1 Test (org.junit.Test)1