Package test.org.magicbox.dbunit

Examples of test.org.magicbox.dbunit.DBCentro.preparaDb()


        .getBean("magicbox.admin.annunciService");
  }

  public void testInserisciAnnuncio() {
    DBCentro dbCentro = new DBCentro();
    dbCentro.preparaDb();
   
   
    AnnuncioImpl annuncio = new AnnuncioImpl();
    annuncio.setIdCentro(46l);
    annuncio.setContenuto("bla bla");
View Full Code Here


    dbAnnunci = null;
  }

  public void testEliminaAnnuncio() {
    DBCentro dbAdmin = new DBCentro();
    dbAdmin.preparaDb();
    DBAnnuncio dbAnnuncio = new DBAnnuncio();
    dbAnnuncio.preparaDb();
   
    assertTrue(_service.eliminaAnnuncio(new Long(30)));
   
View Full Code Here

  }

  public void testInsertResponsabile() throws Exception {

    DBCentro dbCentro = new DBCentro();
    dbCentro.preparaDb();
    DBAdmin dbAdmin = new DBAdmin();

    _reqMock = new MockHttpServletRequest("GET", "/responsabile.page");
    _reqMock.getSession().setAttribute(Constant.ID_CENTRO_SESSIONE, 46l);
    RecapitoTelefonico recapitotel = new RecapitoTelefonicoImpl("3391234567", "070123456",
View Full Code Here

  }

  public void testUpdateResponsabile() throws Exception {

    DBCentro dbCentro = new DBCentro();
    dbCentro.preparaDb();
    DBAdmin dbAdmin = new DBAdmin();

    _reqMock = new MockHttpServletRequest("GET", "/responsabile.page");
    _reqMock.getSession().setAttribute(Constant.ID_CENTRO_SESSIONE, 46l);
    RecapitoTelefonico recapitoTel = new RecapitoTelefonicoImpl("3391234567", "070123456",
View Full Code Here

        .getBean("magicbox.inserimentoCentroFacade");
  }
 
    public void testInsert() {
    DBCentro dbcentro = new DBCentro();
    dbcentro.preparaDb();
    DBRoles dbRoles = new DBRoles();
    DBCredentials dbCredentials = new DBCredentials();
     
    Indirizzo indirizzo = new IndirizzoImpl("09129","Cagliari","CA","Via casamia 74");
    //use impl only for test
View Full Code Here

    _resMock = new MockHttpServletResponse();
  }
 
  public void testPubblicaFeed() throws Exception {
    DBCentro dbCentro = new DBCentro();
    dbCentro.preparaDb();

    _reqMock = new MockHttpServletRequest("GET", "/rss.page");
    _reqMock.getSession().setAttribute(Constant.ID_CENTRO_SESSIONE, 46l);
    //use impl only for test
    AnnuncioImpl annuncio = new AnnuncioImpl();
View Full Code Here

 
  public void testGetAmministratori(){
    DBCredentials dbCredentials = new DBCredentials();
    dbCredentials.preparaDb();
    DBCentro dbCentro = new DBCentro();
    dbCentro.preparaDb();
    DBAdmin dbAdmin = new DBAdmin();
   
    assertTrue(_manager.getAmministratori().size()==0);
    //use impl only for test
    RecapitoTelefonicoImpl recapito = new RecapitoTelefonicoImpl();
View Full Code Here

 
  public void testGetAmministratore(){
    DBCredentials dbCredentials = new DBCredentials();
    dbCredentials.preparaDb();
    DBCentro dbCentro = new DBCentro();
    dbCentro.preparaDb();
    DBAdmin dbAdmin = new DBAdmin();
    dbAdmin.preparaDb();
   
   
    Amministratore admin = _manager.getAmministratore(1);
View Full Code Here

 
  public void testInsertAmministratore(){
    DBCredentials dbCredentials = new DBCredentials();
    dbCredentials.preparaDb();
    DBCentro dbCentro = new DBCentro();
    dbCentro.preparaDb();
    DBAdmin dbAdmin = new DBAdmin();
    //use impl only for test
    RecapitoTelefonicoImpl recapito = new RecapitoTelefonicoImpl();
    recapito.setCellulare("3391234567");
    AmministratoreLight adminLight = new AmministratoreLightImpl("pippo","ciccio pasticcio",new Long(46),new Long(0));
View Full Code Here

  public void testDeleteAmministratore(){

    DBCredentials dbCredentials = new DBCredentials();
    dbCredentials.preparaDb();
    DBCentro dbCentro = new DBCentro();
    dbCentro.preparaDb();
    DBAdmin dbAdmin = new DBAdmin();
   
    assertTrue(_manager.getAmministratori().size()==0);
   
    dbAdmin.preparaDb();
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.