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();
}
Aggregations