spring3单元测试模拟model

[ccn lang="java" tab_size="4" theme="blackboard" width="550" ]
Model model = new ExtendedModelMap();
model.addAttribute(new PCampaignPlan());
// 开始请求第一个需要测试的方法
ModelAndView modelAndView = jiangZuoHuoDongController.newjzjhPage(request,model);
[/ccn]