Package com.arjuna.wst.tests.common

Examples of com.arjuna.wst.tests.common.DemoBusinessParticipantWithComplete


    public static 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());
  }
View Full Code Here


    public static 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());
  }
View Full Code Here

TOP

Related Classes of com.arjuna.wst.tests.common.DemoBusinessParticipantWithComplete

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.