Originally reported on Google Code with ID 215
I have the following simple Integration spec that is throwing an NPE when executed:
import grails.plugin.spock.IntegrationSpec
class MyServiceIntegrationSpec extends IntegrationSpec {
def "a true test"(){
expect:
true
}
}
Stacktrace:
Cannot invoke method autowire() on null object
java.lang.NullPointerException: Cannot invoke method autowire() on null object
at grails.plugin.spock.IntegrationSpec.setupSpec(IntegrationSpec.groovy:47)
Command: 'grails test-app :spock'
Grails plugin: spock 0.6-SNAPSHOT
Grails version: 2.0.0.M2
Reported by rod.biresch on 2011-11-08 20:14:57