Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: 2.0-RC1
-
Fix Version/s: 2.1-RC1
-
Component/s: Controllers
-
Labels:None
-
Environment:mac
Description
I follow the instructions on async http://grails.org/doc/2.0.0.RC1/guide/theWebLayer.html#asynchronousRequestProcessing
def index() {
def ctx = startAsync()
ctx.start
}
But when running unit test, I got the following errors:
org.codehaus.groovy.grails.plugins.testing.GrailsMockHttpServletRequest.startAsync(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)Ljavax/servlet/AsyncContext;
java.lang.AbstractMethodError: org.codehaus.groovy.grails.plugins.testing.GrailsMockHttpServletRequest.startAsync(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)Ljavax/servlet/AsyncContext;
at com.acs.ni.OpenAmController.create(OpenAmController.groovy:21)
at grails.test.mixin.web.ControllerUnitTestMixin$_mockController_closure4.doCall(ControllerUnitTestMixin.groovy:320)
at com.acs.ni.OpenAmControllerTests.userIsSuccessfullyRegistered(OpenAmControllerTests.groovy:81)
I'm noticing the same issue as of grails 2.0.1. It doesn't seem to recognize startAsync() in my integration test.