这是我用httpservletresponse作为参数的控制器。如何为它编写junit测试用例?
@RequestMapping(value = "/excelexport", method = RequestMethod.POST)
public void getExport(@RequestHeader(required = true)
String userid, HttpServletResponse response) {
service.exportExcel(response);
}
暂无答案!
目前还没有任何答案,快来回答吧!