Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-7003

NamedTestMethod must implement equals()

    XMLWordPrintable

Details

    Description

      https://github.com/infinispan/infinispan/pull/4508 wrapped TestNG`s ITestNGMethod in our own NamedTestMethod. But because NamedTestMethod doesn't implement equals(), TestNG doesn't properly keep track of methods that have already run, and never runs @AfterClass methods.

      This means threads started by AbstractInfinispanTest.fork() and cache managers started by tests with @CleanupAfterTest are not properly stopped. In turn, that makes it impossible to run two tests with the same name, and eventually the test suite can no longer start new threads.

      Attachments

        Activity

          People

            dberinde@redhat.com Dan Berindei (Inactive)
            dberinde@redhat.com Dan Berindei (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: