Uploaded image for project: 'Arquillian'
  1. Arquillian
  2. ARQ-247

Using the tomcat 6 embedded profile, @AfterClass methods are called after each test and method dependencies don't work

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • 1.0.0.Alpha3
    • Tomcat Containers
    • None

      If there are dependent tests (@Test(dependsOnMethods = "...")), TestNG throws this exception:

      org.testng.TestNGException: TestClass.testBBB() is not allowed to depend on public void TestClass.testAAA() throws java.lang.Exception
      at org.testng.internal.MethodHelper.findMethodsNamed(MethodHelper.java:149)

      Moreover, @AfterClass methods are called after each test, and additionally after the whole class. Same with @BeforeClass.

              aslak@redhat.com Aslak Knutsen
              adamw_jira Adam Warski (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: