Package test.org.magicbox.dbunit

Examples of test.org.magicbox.dbunit.DBCentri.pulisciDb()


    List centri = (List) mav.getModel().get(Constant.ELENCO_CENTRI);
    assertEquals(2,centri.size() );
    int pagina = (Integer) mav.getModel().get(Constant.NUMERO_PAGINA_ELENCO);
    assertEquals(pagina, 0);
   
    dbCentro.pulisciDb();
    dbCentro = null;
  }
 
  public void testDettaglio() throws Exception {
View Full Code Here


    assertEquals("admin/dettaglioCentro", mav.getViewName());

    Centro centro = (Centro) mav.getModel().get(Constant.CENTRO);
    assertNotNull(centro);
   
    dbCentro.pulisciDb();
    dbCentro = null;
  }
 
 
  public void testConferma() throws Exception {
View Full Code Here

    assertEquals("admin/confermaEliminazioneCentro", mav.getViewName());

    Centro centro = (Centro) mav.getModel().get(Constant.CENTRO);
    assertNotNull(centro);
   
    dbCentro.pulisciDb();
    dbCentro = null;
  }
 
  public void testElimina() throws Exception {
View Full Code Here

    _reqMock = new MockHttpServletRequest("GET", "/centri.admin?action=elimina");
    _reqMock.setParameter(Constant.ID, "46");
    ModelAndView mav = _controller.elimina(_reqMock, _resMock);
    assertEquals(Constant.REDIRECT_ELENCO_CENTRI, mav.getViewName());
   
    dbCentro.pulisciDb();
    dbCentro = null;
  }
 
 
  public void tearDown() throws Exception {
View Full Code Here

    ModelAndView mav = _controller.elenco(_reqMock, _resMock);
    assertEquals("admin/elencoRicercaAlfabeticaCentri", mav.getViewName());
    List centri = (List) mav.getModel().get(Constant.ELENCO_CENTRI);
    assertEquals(2, centri.size());

    dbCentri.pulisciDb();
  }

  public void testPrepara() throws Exception {

    DBCentri dbCentri = new DBCentri();
View Full Code Here

    _reqMock = new MockHttpServletRequest("GET",
        "/ricercheCentri.admin?action=prepara");
    ModelAndView mav = _controller.prepara(_reqMock, _resMock);
    assertEquals("admin/ricercaAlfabeticaCentri", mav.getViewName());

    dbCentri.pulisciDb();
  }

  public void tearDown() throws Exception {
    _reqMock = null;
    _resMock = null;
View Full Code Here

    assertEquals("admin/elencoPages", mav.getViewName());
    List centri = (List) mav.getModel().get(Constant.ELENCO_PAGES);
    assertEquals(10, centri.size());

    dBPages.pulisciDb();
    dbCentri.pulisciDb();
    dbCentri = null;
    dBPages = null;
  }

  public void testCentro() throws Exception {
View Full Code Here

    assertEquals("admin/elencoPages", mav.getViewName());
    List centri = (List) mav.getModel().get(Constant.ELENCO_PAGES);
    assertEquals(7, centri.size());

    dBPages.pulisciDb();
    dbCentri.pulisciDb();
    dBPages = null;
    dbCentri = null;
  }

  public void testAdmin() throws Exception {
View Full Code Here

    assertEquals("admin/elencoPages", mav.getViewName());
    List centri = (List) mav.getModel().get(Constant.ELENCO_PAGES);
    assertEquals(3, centri.size());

    dbPages.pulisciDb();
    dbCentri.pulisciDb();
    dbPages = null;
    dbCentri = null;
  }

  public void tearDown() throws Exception {
View Full Code Here

    assertEquals(_service.getMailgruppi("1,2").size(), 8);
    assertEquals(_service.getMailgruppi("1,2,3").size(), 14);
    assertEquals(_service.getMailgruppi("1,2,3,4").size(), 15);
   
    db.pulisciDb();
    dbC.pulisciDb();
    db = null;
    dbC = null;
  }

  public void tearDown() throws Exception {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.