伍斌老师,你好:
我使用spring boot+spock,制作了一份RESTful风格的示例,源码见:https://github.com/yurilee/springStudy.git
存在一些问题,我搞不定:
1、 Controller中的方法返回值类型:ResponseEntity。似乎,有点重
2、 HttpMethod.PATCH,使用groovy List的API模拟实现部分更新,但,代码确实有误
3、 我现在使用spokc写的测试代码,是否太笨重过了?
4、 没有使用Mock
5、 也没有使用Spring test
6、 如何重构代码,使其利于测试,而且,让测试代码很优雅