Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-7494

TxConnectionManagerUnitTestCase has poor TransactionTimeout usage

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 6.0.0.M2
    • 6.0.0.M1
    • Test Suite
    • None

      org.jboss.test.jca.test.TxConnectionManagerUnitTestCase.setUp uses mbean lookup of a the TransactionTimeout property. This is not required to be present by the tx integration api, it's an implementation detail of the tx mgr. Hence this tests is unnecessarily fragile, especially since the only use of the value retrieved is to reset it after the test. Probably better to just call setTransactionTimeout(0) in tearDown, which will restore the default timeout.

              smcgowan@redhat.com Shelly McGowan (Inactive)
              rhn-engineering-jhallida Jonathan Halliday
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: