You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Dan Fabulich (JIRA)" <ji...@codehaus.org> on 2007/11/23 07:50:57 UTC
[jira] Closed: (SUREFIRE-48) TestSetup decorators don't work
[ http://jira.codehaus.org/browse/SUREFIRE-48?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dan Fabulich closed SUREFIRE-48.
--------------------------------
Resolution: Duplicate
Fix Version/s: (was: 2.4)
Duplicate of SUREFIRE-114
> TestSetup decorators don't work
> -------------------------------
>
> Key: SUREFIRE-48
> URL: http://jira.codehaus.org/browse/SUREFIRE-48
> Project: Maven Surefire
> Issue Type: Bug
> Affects Versions: 2.0 (2.2 plugin)
> 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