[arquillian-issues] [JBoss JIRA] Created: (ARQ-247) Using the tomcat 6 embedded profile, @AfterClass methods are called after each test and method dependencies don't work

Adam Warski (JIRA) jira-events at lists.jboss.org
Wed Aug 11 02:58:49 EDT 2010


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

                 Key: ARQ-247
                 URL: https://jira.jboss.org/browse/ARQ-247
             Project: Arquillian
          Issue Type: Bug
          Components: Tomcat Containers
    Affects Versions: 1.0.0.Alpha3
            Reporter: Adam Warski


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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the arquillian-issues mailing list