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/20 23:58:28 UTC

[jira] Reopened: (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:all-tabpanel ]

George Harp reopened SUREFIRE-448:
----------------------------------


I ran your test and got the following output:
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [surefire:test]
[INFO] Surefire report directory: c:\temp\surefire448\surefire448\target\surefir
e-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running junit4.WeatherMessageGeneratorCallableTest
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>1
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.031 sec

Results :
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2 seconds
[INFO] Finished at: Wed Feb 20 16:55:58 CST 2008
[INFO] Final Memory: 3M/6M
[INFO] ------------------------------------------------------------------------

Only 1 line of output not 5.
I tried maven 2.0.4 and 2.0.8, should I try another version?

PS thanks for the clean example

> @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: surefire448.zip, WeatherMessageGeneratorCallableTest.java, 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