[jboss-cvs] JBossAS SVN: r60501 - branches/Branch_4_2/testsuite/src/main/org/jboss/test/tm/test.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Feb 13 07:27:03 EST 2007


Author: dimitris at jboss.org
Date: 2007-02-13 07:27:03 -0500 (Tue, 13 Feb 2007)
New Revision: 60501

Modified:
   branches/Branch_4_2/testsuite/src/main/org/jboss/test/tm/test/TxTimeoutUnitTestCase.java
Log:
JBAS-4011, the arjuna transaction manager does not allow the setting of the global default tx timeout after the tx manager is started, so we won't test the default timeout setting

Modified: branches/Branch_4_2/testsuite/src/main/org/jboss/test/tm/test/TxTimeoutUnitTestCase.java
===================================================================
--- branches/Branch_4_2/testsuite/src/main/org/jboss/test/tm/test/TxTimeoutUnitTestCase.java	2007-02-13 10:00:43 UTC (rev 60500)
+++ branches/Branch_4_2/testsuite/src/main/org/jboss/test/tm/test/TxTimeoutUnitTestCase.java	2007-02-13 12:27:03 UTC (rev 60501)
@@ -21,13 +21,10 @@
  */
 package org.jboss.test.tm.test;
 
-import javax.management.Attribute;
-import javax.management.ObjectName;
 import javax.transaction.TransactionRolledbackException;
 
 import junit.framework.Test;
 
-import org.jboss.mx.util.ObjectNameFactory;
 import org.jboss.test.JBossTestCase;
 import org.jboss.test.JBossTestSetup;
 import org.jboss.test.tm.interfaces.TxTimeout;
@@ -36,21 +33,25 @@
 /**
  * Tests for transaction timeout
  * 
+ * JBAS-4011, the arjuna transaction manager does not allow the
+ * setting of the global default tx timeout after the tx manager
+ * is started, so we won't test the default timeout setting (300secs).
+ * 
  * @author adrian at jboss.com
  * @version $Revision$
  */
 public class TxTimeoutUnitTestCase
    extends JBossTestCase
 {
+/*
    private Integer oldTimeout;
-   
    private ObjectName tmService = ObjectNameFactory.create("jboss:service=TransactionManager");
-   
+*/   
    public TxTimeoutUnitTestCase(String name)
    {
       super(name);
    }
-
+/*
    public void testDefaultTimeout() throws Exception
    {
       TxTimeout bean = getBean();
@@ -63,7 +64,7 @@
       {
       }
    }
-
+*/
    public void testOverriddenTimeoutExpires() throws Exception
    {
       TxTimeout bean = getBean();
@@ -87,7 +88,7 @@
    {
       return new JBossTestSetup(getDeploySetup(TxTimeoutUnitTestCase.class, "txtimeouttest.jar"));
    }
-
+/*
    protected void setUp() throws Exception
    {
       setTxTimeout(new Integer(10));
@@ -103,7 +104,7 @@
       oldTimeout = (Integer) getServer().getAttribute(tmService, "TransactionTimeout");
       getServer().setAttribute(tmService, new Attribute("TransactionTimeout", timeout));
    }
-   
+*/   
    private TxTimeout getBean() throws Exception
    {
       TxTimeoutHome home = (TxTimeoutHome) getInitialContext().lookup("jbosstest/tm/TxTimeout");




More information about the jboss-cvs-commits mailing list