Search in sources :

Example 1 with OSIInterpositionCreator

use of com.arjuna.ats.internal.jts.interposition.resources.osi.OSIInterpositionCreator in project narayana by jbosstm.

the class OSIInterpositionUnitTest method test.

@Test
public void test() throws Exception {
    OTSImpleManager.current().begin();
    PropagationContext ctx = OTSImpleManager.current().get_control().get_coordinator().get_txcontext();
    OSIInterpositionCreator creator = new OSIInterpositionCreator();
    Control cnt = creator.recreate(ctx);
    ControlImple impl = creator.recreateLocal(ctx);
    assertTrue(cnt != null);
    assertTrue(impl != null);
    OTSImpleManager.current().rollback();
}
Also used : OSIInterpositionCreator(com.arjuna.ats.internal.jts.interposition.resources.osi.OSIInterpositionCreator) Control(org.omg.CosTransactions.Control) PropagationContext(org.omg.CosTransactions.PropagationContext) ControlImple(com.arjuna.ats.internal.jts.orbspecific.ControlImple) Test(org.junit.Test)

Aggregations

OSIInterpositionCreator (com.arjuna.ats.internal.jts.interposition.resources.osi.OSIInterpositionCreator)1 ControlImple (com.arjuna.ats.internal.jts.orbspecific.ControlImple)1 Test (org.junit.Test)1 Control (org.omg.CosTransactions.Control)1 PropagationContext (org.omg.CosTransactions.PropagationContext)1