[ http://jira.codehaus.org/browse/SUREFIRE-728?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=264177#action_264177 ]
Kristian Rosenvold commented on SUREFIRE-728: --------------------------------------------- IN SUREFIRE-729 you managed to show enough of your actual plugin configuration to reveal that you are forcing the 4.7 provider. As can be seen here, http://maven.apache.org/plugins/maven-surefire-plugin/examples/providers.html, when you force the provider you are responsible for ensuring that the proper framework version is on the classpath. Which it is not. > 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