Fwd: RESETful_example_test

7 views
Skip to first unread message

Bin WU (Ben) 伍斌

unread,
Apr 17, 2016, 10:30:06 PM4/17/16
to agiles...@googlegroups.com, 李园园
哪位有时间和兴趣,不妨看看这位匠友的代码,并回答他的问题?我最近比较忙,抽不出时间看。

Ben


---------- Forwarded message ----------
From: 李园园 <javaliy...@163.com>
Date: 2016-04-18 8:52 GMT+08:00
Subject: RESETful_example_test
To: wub...@gmail.com


伍斌老师,你好:

我使用spring boot+spock,制作了一份RESTful风格的示例,源码见:https://github.com/yurilee/springStudy.git

存在一些问题,我搞不定:

1、 Controller中的方法返回值类型:ResponseEntity。似乎,有点重

2、 HttpMethod.PATCH,使用groovy ListAPI模拟实现部分更新,但,代码确实有误

3、 我现在使用spokc写的测试代码,是否太笨重过了?

4、 没有使用Mock

5、 也没有使用Spring test

6、 如何重构代码,使其利于测试,而且,让测试代码很优雅

 


Reply all
Reply to author
Forward
0 new messages