You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Brett Porter (JIRA)" <ji...@codehaus.org> on 2007/02/23 08:06:38 UTC

[jira] Updated: (SUREFIRE-48) TestSetup decorators don't work

     [ http://jira.codehaus.org/browse/SUREFIRE-48?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brett Porter updated SUREFIRE-48:
---------------------------------

    Fix Version/s:     (was: 2.3)
                   2.4

> 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
>             Fix For: 2.4
>
>
> 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