[ http://issues.apache.org/jira/browse/GERONIMO-2579?page=all ]
Jason Dillon closed GERONIMO-2579.
----------------------------------
Resolution: Won't Fix
TestNG with Surefire 2.3-SNAPSHOT appears to work fine with JDK 1.5
annotations. Appears that you need to use a suite.xml to get the @BeforeSuite
and @AfterSuite annotations to get triggered though... that may be a bug in how
Surefire has implemented TestNG support though.
> TestNG testcases in testsuite broken. JUnit expected. Move to JUnit 4.0 ?
> -------------------------------------------------------------------------
>
> Key: GERONIMO-2579
> URL: http://issues.apache.org/jira/browse/GERONIMO-2579
> Project: Geronimo
> Issue Type: Bug
> Security Level: public(Regular issues)
> Components: buildsystem
> Affects Versions: 2.0
> Reporter: Prasad Kashyap
> Assigned To: Jason Dillon
> Fix For: 2.0
>
> Attachments: testng-jdk15.patch
>
>
> The testng testcases broke soon after we moved to building G with jdk1.5.
> > cd geronimo/testsuite
> > apply testng-jdk15.patch:
> Patch changes testng dependency to use jdk15 classifier.
> It configures the maven-compiler-plugin to use 1.5 for source and target.
> It updates the test methods to use jdk1.5 annotations instead of javadoc
> style comments.
> Problem:
> ------------
> [INFO] [INFO] Compilation failure
> [INFO]
> [INFO]
> C:\Apache\geronimo\trunk\testsuite\console-testsuite\basic\src\test\java\org\apache\geronimo\testsuite\console\LinkCheckTest.java:[30,5]
> annotations are not supported in -source 1.4
> [INFO] (try -source 1.5 to enable annotations)
> [INFO] @Test
> [INFO]
> [INFO]
> C:\Apache\geronimo\trunk\testsuite\console-testsuite\basic\src\test\java\org\apache\geronimo\testsuite\console\SeleniumTestSupport.java:[53,5]
> annotations are not supported in -source 1.4
> [INFO] (try -source 1.5 to enable annotations)
> [INFO] @BeforeSuite
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira