build.gradle
testCompile group: 'org.spockframework', name: 'spock-core', version: '1.0-groovy-2.3-SNAPSHOT' testCompile group: 'org.spockframework', name: 'spock-spring', version: '1.0-groovy-2.3-SNAPSHOT' testCompile group: 'org.spockframework', name: 'spock-unitils', version: '0.7-groovy-2.0' testCompile group: 'org.unitils', name: 'unitils-core', version: '3.4.2' testCompile group: 'org.unitils', name: 'unitils-dbunit', version: '3.4.2'
Test class
@UnitilsSupport @DataSet @ContextConfiguration("classpath:context.xml") class TestSpec extends Specification {
Stacktrace:
Caused by: java.lang.NoSuchMethodError: org.spockframework.runtime.model.SpecInfo.getSetupSpecMethod()Lorg/spockframework/runtime/model/MethodInfo; at org.spockframework.unitils.UnitilsExtension.visitSpecAnnotation(UnitilsExtension.java:28) at org.spockframework.unitils.UnitilsExtension.visitSpecAnnotation(UnitilsExtension.java:23) at org.spockframework.runtime.ExtensionRunner.doRunAnnotationDrivenExtensions(ExtensionRunner.java:91) at org.spockframework.runtime.ExtensionRunner.runAnnotationDrivenExtensions(ExtensionRunner.java:62) at org.spockframework.runtime.ExtensionRunner.runAnnotationDrivenExtensions(ExtensionRunner.java:51) at org.spockframework.runtime.ExtensionRunner.run(ExtensionRunner.java:41) at org.spockframework.runtime.Sputnik.runExtensionsIfNecessary(Sputnik.java:88) at org.spockframework.runtime.Sputnik.getDescription(Sputnik.java:55) at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:43)
Comment #1
Posted on Feb 25, 2015 by Happy KangarooIssue is not actual. There is wrong version of spock-unitils module. Should be '1.0-groovy-2.3-SNAPSHOT' as core version.
Comment #2
Posted on Mar 3, 2015 by Grumpy Cat(No comment was entered for this change.)
Status: Invalid
Labels:
Type-Defect
Module-Core
Milestone-1.0