Search in sources :

Example 1 with RestrictedInterposition

use of com.arjuna.ats.internal.jts.interposition.resources.restricted.RestrictedInterposition in project narayana by jbosstm.

the class RestrictedInterpositionUnitTest method test.

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

Aggregations

RestrictedInterposition (com.arjuna.ats.internal.jts.interposition.resources.restricted.RestrictedInterposition)1 RestrictedInterpositionCreator (com.arjuna.ats.internal.jts.interposition.resources.restricted.RestrictedInterpositionCreator)1 ControlImple (com.arjuna.ats.internal.jts.orbspecific.ControlImple)1 Test (org.junit.Test)1 PropagationContext (org.omg.CosTransactions.PropagationContext)1