Search in sources :

Example 1 with StrictInterpositionCreator

use of com.arjuna.ats.internal.jts.interposition.resources.strict.StrictInterpositionCreator in project narayana by jbosstm.

the class StrictInterpositionUnitTest method test.

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

Aggregations

StrictInterpositionCreator (com.arjuna.ats.internal.jts.interposition.resources.strict.StrictInterpositionCreator)1 Test (org.junit.Test)1 PropagationContext (org.omg.CosTransactions.PropagationContext)1