You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "nodje (JIRA)" <ji...@codehaus.org> on 2008/12/19 07:28:19 UTC
[jira] Updated: (SUREFIRE-479) @BeforeClass and @AfterClass on
parent class are not executed
[ http://jira.codehaus.org/browse/SUREFIRE-479?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
nodje updated SUREFIRE-479:
---------------------------
Attachment: surefire479-withGrp.zip
> @BeforeClass and @AfterClass on parent class are not executed
> -------------------------------------------------------------
>
> Key: SUREFIRE-479
> URL: http://jira.codehaus.org/browse/SUREFIRE-479
> Project: Maven Surefire
> Issue Type: Bug
> Components: TestNG support
> Affects Versions: 2.4.2
> Reporter: Erik Putrycz
> Attachments: surefire479-withGrp.zip, surefire479.zip
>
>
> I have
> public abstract class A {
> @BeforeClass
> public void init() {...}
> @AfterClass
> public void cleanup() {...}
> }
> and
> @Test
> public class TestA extends A {
> public void testSomething() {...}
> }
> when surefire executes testSomething, the @BeforeClass and @AfterClass are never being called. I have testng 5.7.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira