1
的actionName一个拦截器的before()
我在做具体的基础上,actionName
的东西,但在测试运行时actionName
为空:如何使可用于单元测试
测试:
void "test"() {
when:
withRequest(controller: 'test1', action: 'test2')
then:
interceptor.doesMatch()
interceptor.before()
}
如何在测试中填充actionName
?
的Grails 3.1.6