TestSetup decorators don't work ------------------------------- Key: SUREFIRE-48 URL: http://jira.codehaus.org/browse/SUREFIRE-48 Project: surefire Type: Bug
Versions: 2.0 Reporter: Mike Perham junit.extensions.TestSetup allow you to decorate a test like this: ts.addTest(new CargoTestSetup(DetailPageTest.suite())); Basically this will run Cargo to startup a container before running the tests within that suite. When I try this, I get this error: Caused by: java.lang.NoSuchMethodException: tools.CargoTestSetup.getName() at java.lang.Class.getMethod(Class.java:986) at org.apache.maven.surefire.junit.TestListenerInvocationHandler.getStackTraceWriter(TestListenerInvocationHandler.java:171) at org.apache.maven.surefire.junit.TestListenerInvocationHandler.handleAddError(TestListenerInvocationHandler.java:160) at org.apache.maven.surefire.junit.TestListenerInvocationHandler.invoke(TestListenerInvocationHandler.java:134) -- 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