예제 #1
0
  public ActionForward perform(
      ActionMapping mapping,
      ActionForm form,
      HttpServletRequest request,
      HttpServletResponse response)
      throws IOException, ServletException {

    BillDetailForm billDetailForm = (BillDetailForm) form;
    Bill bill = Bill.loadBill(new DefaultBillEntityLoader(new Integer(billDetailForm.getBillId())));

    bill.audit();
    request.setAttribute("bill", bill);
    return (mapping.findForward("success"));
  }
 public void testARouting() {
   Bill bill = new Bill("A", "1", new BigDecimal("2000.00"), new TypeARouter());
   String location = bill.route();
   assertEquals(location, "A_LOCATION_");
 }