我想测试下面的控制器方法。有没有办法在
模拟请求中添加 Profile 对象?
MockHttpServletRequest request = new MockHttpServletRequest();
//request.add(myProfile);
@RequestMapping(value = "/", method = RequestMethod.POST)
public View postUser(ModelMap data, @Valid Profile profile) {}