[ 
https://jira.codehaus.org/browse/SUREFIRE-575?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=336070#comment-336070
 ] 

Kristian Rosenvold commented on SUREFIRE-575:
---------------------------------------------

I doubt this issue will be fixed unless someone submits a patch. 

As for the exception in @BeforeClass, please file a separate issue.

On a side note, I am quite certain we have a test case for the exception in 
beforeClass that is for the junit 4.7 provider. So I assume this problem 
applies to the old junit 4 provider. This makes it no less serious, but you can 
probably work around by switching to the 4.7 provider.
                
> Test run as JUnit3 test when extends TestCase - TestNG annotations are ignored
> ------------------------------------------------------------------------------
>
>                 Key: SUREFIRE-575
>                 URL: https://jira.codehaus.org/browse/SUREFIRE-575
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: TestNG support
>    Affects Versions: 2.4.3
>         Environment: Sun JDK 1.6.0_16, Maven 2.2.1
>            Reporter: Przemyslaw Wojnowski
>         Attachments: DaoTest.java, pom.xml
>
>
> TestNG test is run as JUnit3 test when it inherits from JUnit's TestCase 
> class.
> When inheritance is removed, then test is run as TestNG test.
> In both cases in Eclipse it is run as TestNG test (BeforeClass and AfterClass 
> are called).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to