Package org.jboss.jbossts.qa.astests.recovery

Examples of org.jboss.jbossts.qa.astests.recovery.TestASRecovery


         return "Passed";
    }

    public String testXA(ASFailureSpec... specs)
    {
        TestASRecovery xatest = new TestASRecovery();
        String txStatus = getStatus(context.getUserTransaction());

        if (txStatus != null)
            System.out.println("BMT method called with tx status: " + txStatus);
       
        System.out.println("BMT testXA called with " + specs.length + " specs");

        for (ASFailureSpec spec : specs)
            xatest.addResource(spec);

        return xatest.startTest() ? "Passed" : "Failed";
    }
View Full Code Here


    public String testXA(ASFailureSpec... specs)
    {
        System.out.println("CMT testXA called with " + specs.length + " specs");

        TestASRecovery xatest = new TestASRecovery();
        Transaction tx;

        try
        {
            tx = com.arjuna.ats.jta.TransactionManager.transactionManager().getTransaction();
        }
        catch (javax.transaction.SystemException e)
        {
            tx = null;
        }

        if (tx == null)
        {
            System.out.println("CMT testXA called without a transaction");

            return "Failed";
        }
        else
        {
            for (ASFailureSpec spec : specs)
                xatest.addResource(spec);

            xatest.startTest(tx);

            return "Passed";
        }
    }
View Full Code Here

TOP

Related Classes of org.jboss.jbossts.qa.astests.recovery.TestASRecovery

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.