Examples of clearBehavior()


Examples of com.sun.jini.test.share.TestParticipant.clearBehavior()

       } catch (CannotCommitException cce) {
            cce.printStackTrace();

            // Expected exception. Test passed.
            try {
                part.clearBehavior(OP_VOTE_ABORTED);
            } catch (RemoteException re1) {
                logger.log(Level.INFO,
         "PrepareTimeoutTest: run: " + re1.getMessage());
                re1.printStackTrace();
            }
View Full Code Here

Examples of com.sun.jini.test.share.TestParticipant.clearBehavior()

        cr = TransactionFactory.create(mgr, Lease.FOREVER);
        str = (ServerTransaction) cr.transaction;
        logger.log(Level.INFO, "RollForwardErrorTest: setting behavior for "
                + NUM_PARTICIPANTS + " participants");
        tp.clearBehavior(EXCEPTION_REMOTE);
        tp.setBehavior(EXCEPTION_TRANSACTION);
        TxnTestUtils.doBulkBehavior(cr.transaction, parts);
        logger.log(Level.INFO, "RollForwardErrorTest: commiting the txn");
        cr.transaction.commit();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.