use of com.arjuna.ats.internal.jts.interposition.resources.restricted.RestrictedInterpositionCreator 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();
}
Aggregations