You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "George Harp (JIRA)" <ji...@codehaus.org> on 2008/02/01 02:51:57 UTC

[jira] Commented: (SUREFIRE-448) @Before, @After, @BeforeClass, @AfterClass do not seem to be functioning as of 2.4

    [ http://jira.codehaus.org/browse/SUREFIRE-448?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_121981 ] 

George Harp commented on SUREFIRE-448:
--------------------------------------

The following output is from eclipse's junit run:
WeatherMessageGeneratorCallableTest beforeClass ERROR >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>1
WeatherMessageGeneratorCallableTest before ERROR >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>1
WeatherMessageGeneratorCallableTest testOne ERROR >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>1
WeatherMessageGeneratorCallableTest after ERROR >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>1
WeatherMessageGeneratorCallableTest afterClass ERROR >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>1

This is from surefire:
WeatherMessageGeneratorCallableTest testOne ERROR >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>1

also if I rename testOne() to not start with the word test it doesnt execute inspite of the annotation

> @Before, @After, @BeforeClass, @AfterClass do not seem to be functioning as of 2.4
> ----------------------------------------------------------------------------------
>
>                 Key: SUREFIRE-448
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-448
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: Junit 4.x support
>    Affects Versions: 2.4
>         Environment: Windows XP
> maven 2.0.8
>            Reporter: George Harp
>         Attachments: WeatherMessageGeneratorCallableTest.java
>
>
> the attached class only outputs the testOne() message:

-- 
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