Uploaded image for project: 'CDI TCK'
  1. CDI TCK
  2. CDITCK-502

Using TestNG dependsOnMethod could potentially cause problems

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 1.1.6.Final, 2.0.0.Alpha3, 1.2.6.SP2
    • None
    • None

      This is because TestNG doesn't guarantee that this method is called right after the method it depends on. This could lead for example to following scenario:

      1. call method which I depend on
      2. restart server (Arquillian incontainer mode restarts server after 250 tests)
      3. call method with dependsOnMethod param

      The deployment in this case should survive the server restart but it's not guaranteed anyway as this currently manifests with following problem on Solaris architecture https://issues.jboss.org/browse/JBEAP-588.

            tremes1@redhat.com Tomas Remes
            tremes1@redhat.com Tomas Remes
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: