use of com.arjuna.wstx.tests.common.DemoBusinessParticipantWithComplete in project narayana by jbosstm.
the class ConfirmWithCompleteTest method testConfirmWithComplete.
@Test
public void testConfirmWithComplete() throws Exception {
UserBusinessActivity uba = UserBusinessActivity.getUserBusinessActivity();
BusinessActivityManager bam = BusinessActivityManager.getBusinessActivityManager();
DemoBusinessParticipantWithComplete p = new DemoBusinessParticipantWithComplete(DemoBusinessParticipantWithComplete.COMPLETE, "1234");
try {
uba.begin();
bam.enlistForBusinessAgreementWithCoordinatorCompletion(p, "1237");
uba.complete();
} catch (Exception eouter) {
try {
uba.cancel();
} catch (Exception einner) {
}
throw eouter;
}
uba.cancel();
assertTrue(p.passed());
}
Aggregations