コード例 #1
0
  //    @Test
  public void actualizarTest() throws DAOExcepcion {
    GestionCuota negocio = new GestionCuota();
    try {
      Cuota cuota = new Cuota();
      //            cuota = negocio.actualizar(5, "02", 2013, 245.32, "2013-10-11", "C", "E",
      // "2013-11-11",2);

      cuota = negocio.actualizar(1, "01", 2013, 320.45, "2013-10-11", "C", "C", "2013-11-11", 1);
      cuota = negocio.actualizar(2, "02", 2013, 190.90, "2013-11-11", "P", "E", "2013-12-11", 2);
      cuota = negocio.actualizar(3, "03", 2013, 210.10, "2013-10-11", "C", "C", "2013-11-11", 3);
      cuota = negocio.actualizar(4, "04", 2013, 223.65, "2013-10-11", "P", "E", "2013-12-11", 4);
      System.out.print(cuota.getfech_pago());
    } catch (DAOExcepcion e) {
      Assert.fail("Fallo la actualizacion: " + e.getMessage());
    }
  }