Grails3 controller integration test case fail: No thread-bound request found
问题 With just simple following controller action spock integration-test. Here is my Test. @Integration @Rollback class TestControllerSpec extends Specification { def setup() { } def cleanup() { } void "test something"() { setup: def c = new TestController() c.index() expect: c.response.contentType !=null } } getting following Exception java.lang.IllegalStateException: No thread-bound request found: Are you referring to request attributes outside of an actual web request, or processing a request