0

如何在 grails 中为测试 '/$controller' 进行单元测试 url 映射?

 "/$controller/$action?/$id?"{
       constraints {
           // apply constraints here
       }
 } 

谢谢

4

1 回答 1

0

Grails 已经为此内置了功能(如果您使用的是 grails 2.x)。http://grails.org/doc/latest/guide/testing.html#unitTestingURLMappings

于 2013-06-24T04:07:54.947 回答