[ http://issues.apache.org/jira/browse/GERONIMO-2579?page=comments#action_12451175 ] Prasad Kashyap commented on GERONIMO-2579: ------------------------------------------
Thanx. With those imports I was able to get the test classes compiled and tests run. But now I am back to the same test failures I had before. So firstly, it means that moving to jdk1.5 didn't break the tests. Second, these are the test failures that I now see uniformly with both testng-jdk14 and testng-jdk15. Example: ------------- java.lang.NullPointerException at org.apache.geronimo.testsuite.console.ConsoleTestSupport.login(ConsoleTestSupport.java:31) at org.apache.geronimo.testsuite.console.LinkCheckTest.testServerInfoLink(LinkCheckTest.java:34) Seems like the @BeforeSuite is not getting recognised and executed. The log.info() in SeleniumTestSupport.java don't show up. > TestNG testcases in testsuite now broken due to 1.5 build > --------------------------------------------------------- > > 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
