你可以告诉如何编写以下方法的测试用例

时间:2014-01-29 13:21:43

标签: spring junit

@RequestMapping(value="/viewInvBatchForm", method = RequestMethod.POST)
public String _P_view_inventory_Batch(@RequestParam("invBatchId") long invBatchId,Model  m){
    InventoryBatchDTO dto = invBatchDao.viewBatch(invBatchId);
    m.addAttribute("vendors", getVendors(dto.getInventoryBatchType()));
    m.addAttribute("buyers", getBuyers(dto.getInventoryBatchType()));
    m.addAttribute("inventoryBatch",dto);
    return "viewInvBatchForm";
}

1 个答案:

答案 0 :(得分:0)