You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Kristian Rosenvold (JIRA)" <ji...@codehaus.org> on 2011/04/19 20:59:22 UTC
[jira] Closed: (SUREFIRE-728) Surefire 2.8, surefire-junit4-2.8,
junit 4.6, Spring 3.0.5 - AbstractMethodError
[ http://jira.codehaus.org/browse/SUREFIRE-728?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kristian Rosenvold closed SUREFIRE-728.
---------------------------------------
Resolution: Cannot Reproduce
Assignee: Kristian Rosenvold
Given the exact same versions of the software, I cannot reproduce this issue.
I think you are picking up some different version of junit, probably the one that is packaged with the spring framework instead of the stock junit:junit version. run mvn dependency:tree an examine which versions of junit you are using.
> Surefire 2.8, surefire-junit4-2.8, junit 4.6, Spring 3.0.5 - AbstractMethodError
> --------------------------------------------------------------------------------
>
> Key: SUREFIRE-728
> URL: http://jira.codehaus.org/browse/SUREFIRE-728
> Project: Maven Surefire
> Issue Type: Bug
> Components: Maven Surefire Plugin
> Affects Versions: 2.8
> Environment: Surefire 2.8, surefire-junit4-2.8, junit 4.6, Spring 3.0.5, Windows XP
> Reporter: Igor Petruk
> Assignee: Kristian Rosenvold
>
> When used the following versions of the software I get the following report on each test
> -------------------------------------------------------------------------------
> Test set: somepackage.SomeTest
> -------------------------------------------------------------------------------
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.016 sec <<< FAILURE!
> somepackage.SomeTest Time elapsed: 0 sec <<< ERROR!
> java.lang.AbstractMethodError
> at org.springframework.test.context.TestContextManager.afterTestClass(TestContextManager.java:448)
> at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:77)
> at org.junit.runners.ParentRunner.run(ParentRunner.java:220)
> at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:180)
> at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:59)
> at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:120)
> at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:103)
> at org.apache.maven.surefire.Surefire.run(Surefire.java:169)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350)
> at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)
--
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