Uploaded image for project: 'Qpid'
  1. Qpid
  2. QPID-2028

Broker test do not cleanup ApplicationRegistry that they create

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.6
    • Java Tests
    • None

    Description

      Summmary:

      The non-unit tests in the broker package that cause an ApplicationRegistry to be created do not correctly remove this registry at the end of the test. This is what causes the ApplicationRegistry errors at the end of the ant run.

      Sharing ARs between tests will increase the likelyhood of cross contamination of tests leading to spurious failures.

      The tests should ensure that the correctly close any AR they create.

      This is more relevant now as the new broker logging uses a ThreadLocal to maintain the current logger and only through a correct clean up of all tests can it be successfully tested in isolation.

      Attachments

        Activity

          People

            ritchiem Martin Ritchie
            ritchiem Martin Ritchie
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: