Skip to content

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

@robfletcher

Description

@robfletcher

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions