Examples of Indirizzo


Examples of org.magicbox.domain.Indirizzo

  public void testProcessFinish() throws Exception {

    DBCentro dbCentro = new DBCentro();

    _reqMock = new MockHttpServletRequest("GET", "/nuovoCentro.admin");
    Indirizzo indirizzo = new IndirizzoImpl("09100", "cagliari", "CA",
        "casamia 3");
    //use impl only for test
    CentroLightImpl centroLight = new CentroLightImpl();
    centroLight.setCreditoResiduoSms(200);
    centroLight.setId(46);
View Full Code Here

Examples of org.magicbox.domain.Indirizzo

    DBCentro dbCentro = new DBCentro();
    DBUtenti dbUtenti = new DBUtenti();
    dbCentro.preparaDb();
    RecapitoTelefonico recapitoTel = new RecapitoTelefonicoImpl(
        "3391234567", "070123457", "070123458", "070123456");
    Indirizzo indirizzo = new IndirizzoImpl("09129", "Cagliari", "CA",
        "Via Casamia 1");
    UtenteLight utenteLight = new UtenteLightImpl("101","Baldussu Aldo",0,2);
    Utente utente = new UtenteImpl(utenteLight,46, "desmax74@yahoo.it", true, indirizzo, recapitoTel);
    Long id = _service.saveUtente(utente);
    Utente utenteRecuperato = _service.getUtente(id, 46);
View Full Code Here

Examples of org.magicbox.domain.Indirizzo

    DBCentro dbCentro = new DBCentro();
    DBUtenti dbUtenti = new DBUtenti();
    dbCentro.preparaDb();
    RecapitoTelefonico recapitoTel = new RecapitoTelefonicoImpl(
        "3391234567", "070123457", "070123458", "070123456");
    Indirizzo indirizzo = new IndirizzoImpl("09129", "Cagliari", "CA",
        "Via Casamia 1");
    UtenteLight utenteLight = new UtenteLightImpl("101","Baldussu Aldo",0,2);
    Utente utente = new UtenteImpl(utenteLight,46, "desmax74@yahoo.it", true, indirizzo, recapitoTel);
    Long id = _service.saveUtente(utente);
    Utente utenteRecuperato = _service.getUtente(id, 46);
    assertNotNull(utenteRecuperato);

    Indirizzo indirizzoTwo = new IndirizzoImpl("09100", "Soleminis", "CA",
        "Via Casanostra 2");
    UtenteLight utenteLightTwo = new UtenteLightImpl("501","Aldo Baldussu",id,2);
    utenteRecuperato = new UtenteImpl(utenteLightTwo,46, "desmax74@yahoo.com", true, indirizzoTwo, recapitoTel);

    _service.saveUtente(utenteRecuperato);
View Full Code Here

Examples of org.magicbox.domain.Indirizzo

  public void testDeleteUtente() {
    DBCentro dbCentro = new DBCentro();
    dbCentro.preparaDb();
    RecapitoTelefonico recapitoTel = new RecapitoTelefonicoImpl( "3391234567", "070123457", "070123458",
    "070123456");
    Indirizzo indirizzo = new IndirizzoImpl("09129", "Cagliari", "CA",
        "Via Casamia 1");
    UtenteLight utenteLight = new UtenteLightImpl("101","Baldussu Aldo",0,2);
    Utente utente = new UtenteImpl(utenteLight,46, "desmax74@yahoo.it", true, indirizzo, recapitoTel);
    Long id = _service.saveUtente(utente);
    Utente utenteRecuperato = _service.getUtente(id, 46);
View Full Code Here

Examples of org.magicbox.domain.Indirizzo

    DBUtenti dbUtenti = new DBUtenti();
    List<Utente> utenti = new ArrayList<Utente>();
    for (int i = 0; i < 1000; i++) {
      RecapitoTelefonico recapitoTel = new RecapitoTelefonicoImpl( "3391234567", "070123457", "070123458",
      "070123456");
      Indirizzo indirizzo = new IndirizzoImpl( "09129", "Cagliari",
          "CA", "Via Casamia 1");
      UtenteLight utenteLight = new UtenteLightImpl("101","Baldussu Aldo",0,2);
      Utente utente = new UtenteImpl(utenteLight,46, "desmax74@yahoo.it", true, indirizzo, recapitoTel);
      utenti.add(utente);
    }
View Full Code Here

Examples of org.magicbox.domain.Indirizzo

    DBCentro dbCentro = new DBCentro();
    DBUtenti dbUtenti = new DBUtenti();
    dbCentro.preparaDb();
    RecapitoTelefonico recapitoTel = new RecapitoTelefonicoImpl("3391234567", "070123457", "070123458",
        "070123456");
    Indirizzo indirizzo = new IndirizzoImpl("09129", "Cagliari", "CA",
        "Via Casamia 1");
    UtenteLight utenteLight = new UtenteLightImpl("101", "Baldussu Aldo",0, 2);

    Utente utente = new UtenteImpl(utenteLight,46,"desmax74@yahoo.it", true,indirizzo ,recapitoTel);
    Long id = _dao.insertUtente(utente);
View Full Code Here

Examples of org.magicbox.domain.Indirizzo

    DBCentro dbCentro = new DBCentro();
    DBUtenti dbUtenti = new DBUtenti();
    dbCentro.preparaDb();
    RecapitoTelefonico recapitoTel = new RecapitoTelefonicoImpl("3391234567", "070123457", "070123458",
        "070123456");
    Indirizzo indirizzo = new IndirizzoImpl("09129", "Cagliari", "CA",
        "Via Casamia 1");

    UtenteLight utenteLight = new UtenteLightImpl("101","Baldussu Aldo",0,2);
    Utente utente = new UtenteImpl(utenteLight,46, "desmax74@yahoo.it", true, indirizzo, recapitoTel);
   
    Long id = _dao.insertUtente(utente);
    Utente utenteRecuperato = _dao.getUtente(id, 46);
    assertNotNull(utenteRecuperato);

    Indirizzo indirizzoTwo = new IndirizzoImpl("09100", "Soleminis", "CA",
        "Via Casanostra 2");
    UtenteLight utenteLighttwo = new UtenteLightImpl("501","Aldo Baldussu",id,2);
    Utente utenteUpdate = new UtenteImpl(utenteLighttwo,46,"desmax74@yahoo.com", true,indirizzoTwo ,recapitoTel);

    assertTrue(_dao.updateUtente(utenteUpdate)==1);
View Full Code Here

Examples of org.magicbox.domain.Indirizzo

  public void testDeleteUtente() {
    DBCentro dbCentro = new DBCentro();
    dbCentro.preparaDb();
    RecapitoTelefonico recapitoTel = new RecapitoTelefonicoImpl("3391234567", "070123457", "070123458",
        "070123456");
    Indirizzo indirizzo = new IndirizzoImpl("09129", "Cagliari", "CA",
        "Via Casamia 1");
    UtenteLight utenteLight = new UtenteLightImpl("501","Baldussu Aldo",0,2);
    Utente utente = new UtenteImpl(utenteLight,46, "desmax74@yahoo.it", true, indirizzo, recapitoTel);
    Long id = _dao.insertUtente(utente);
    Utente utenteRecuperato = _dao.getUtente(id, 46);
View Full Code Here

Examples of org.magicbox.domain.Indirizzo

    DBUtenti dbUtenti = new DBUtenti();
    List<Utente> utenti = new ArrayList<Utente>();
    for (int i = 0; i < 1000; i++) {
      RecapitoTelefonico recapitoTel = new RecapitoTelefonicoImpl( "3391234567", "070123457", "070123458",
          "070123456");
      Indirizzo indirizzo = new IndirizzoImpl("09129", "Cagliari", "CA",
          "Via Casamia 1");
      UtenteLight utenteLight = new UtenteLightImpl("101","Baldussu Aldo",0,2);
      Utente utente = new UtenteImpl(utenteLight,46, "desmax74@yahoo.it", true, indirizzo, recapitoTel);
      utenti.add(utente);
    }
View Full Code Here

Examples of org.magicbox.domain.Indirizzo

 
  public void testInsertCentro() {

    assertTrue(_dao.getNumeroCentri() == 0);
   
    Indirizzo indirizzo = new IndirizzoImpl("09129","Cagliari","CA","Via casamia 74");
    //use impl only for test
    CentroLightImpl centroLight = new CentroLightImpl();
    centroLight.setCreditoResiduoSms(1000);
    centroLight.setId(0);
    centroLight.setNomeCentro("Casa mia");
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.