sreedharkesarla / spock

Automatically exported from code.google.com/p/spock
0 stars 0 forks source link

Grails - Cannot invoke method autowire() on null object #215

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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

Original issue reported on code.google.com by rod.bire...@gmail.com on 8 Nov 2011 at 8:14

GoogleCodeExporter commented 8 years ago
Do you still have this problem?

Original comment by pnied...@gmail.com on 17 Feb 2012 at 3:10

GoogleCodeExporter commented 8 years ago
No, I've since upgraded my project to grails 2.0.0 with spock 0.6-SNAPSHOT and 
things seem fine.

Original comment by rod.bire...@gmail.com on 17 Feb 2012 at 12:28