- 博客(1)
- 收藏
- 关注
转载 Grails中的Controller单元测试
<br />对于Controller的单元测试,Grails也提供了很方便的支持,使得书写非常简单,有代码为证:<br /> 单元测试代码<br /> 1. class CategoryControllerTests extends GroovyTestCase { <br /> 2. <br /> 3. void setUp(){ <br /> 4. def test1= new Category(name: "Test1", parent:
2010-12-08 12:12:00 1314
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人