Examples of Utente


Examples of org.magicbox.domain.Utente

    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);

    utente = _service.getUtente(id, 46);
    assertEquals(utente.getCentro(), utenteRecuperato.getCentro());
    assertEquals(utente.getId(), utenteRecuperato.getId());
    assertEquals(utente.getIdGruppo(), utenteRecuperato.getIdGruppo());
    assertEquals(utente.getCap(), utenteRecuperato.getCap());
    assertEquals(utente.getCellulare(), utenteRecuperato.getCellulare());
    assertEquals(utente.getCorris(), utenteRecuperato.getCorris());
    assertEquals(utente.getEmail(), utenteRecuperato.getEmail());
    assertEquals(utente.getIndirizzo(), utenteRecuperato.getIndirizzo());
    assertEquals(utente.getNominativo(), utenteRecuperato.getNominativo());
    assertEquals(utente.getProvincia(), utenteRecuperato.getProvincia());
    assertEquals(utente.getTelefonoCasa(), utenteRecuperato
        .getTelefonoCasa());
    assertEquals(utente.getTelefonoDomicilio(), utenteRecuperato
        .getTelefonoDomicilio());
    assertEquals(utente.getTelefonoLavoro(), utenteRecuperato
        .getTelefonoLavoro());
    assertEquals(utente.getTessera(), utenteRecuperato.getTessera());

    dbUtenti.pulisciDb();
    dbCentro.pulisciDb();
    dbUtenti = null;
    dbCentro = null;
View Full Code Here

Examples of org.magicbox.domain.Utente

    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);

    assertEquals(_service.deleteUtente(id, 46), true);
    assertNull(_service.getUtente(id, 46));
View Full Code Here

Examples of org.magicbox.domain.Utente

      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);
    }

    assertEquals(1000, _service.insertUtenti(utenti, 46));
View Full Code Here

Examples of org.magicbox.domain.Utente

    db.preparaDb();

    List<UtenteLight> utenti = _dao.getUtentiByCap("46010", 46, 0);
    assertEquals(utenti.size(), 1);
    UtenteLight utente = utenti.get(0);
    Utente utenteRecuperato = _dao.getUtente(utente.getId(), 46);

    assertEquals(utente.getId(), utenteRecuperato.getId());
    assertEquals(utente.getNominativo(), utenteRecuperato.getNominativo());
    assertEquals(utente.getTessera(), utenteRecuperato.getTessera());

    db.pulisciDb();
    dbCentro.pulisciDb();
    db = null;
    dbCentro = null;
View Full Code Here

Examples of org.magicbox.domain.Utente

        "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);

    dbUtenti.pulisciDb();
    dbCentro.pulisciDb();
    dbUtenti = null;
View Full Code Here

Examples of org.magicbox.domain.Utente

        "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);

    utente = _dao.getUtente(id, 46);
    assertEquals(utente.getCentro(), utenteUpdate.getCentro());
    assertEquals(utente.getId(), utenteUpdate.getId());
    assertEquals(utente.getIdGruppo(), utenteUpdate.getIdGruppo());
    assertEquals(utente.getCap(), utenteUpdate.getCap());
    assertEquals(utente.getCellulare(), utenteUpdate.getCellulare());
    assertEquals(utente.getCorris(), utenteUpdate.getCorris());
    assertEquals(utente.getEmail(), utenteUpdate.getEmail());
    assertEquals(utente.getIndirizzo(), utenteUpdate.getIndirizzo());
    assertEquals(utente.getNominativo(), utenteUpdate.getNominativo());
    assertEquals(utente.getProvincia(), utenteUpdate.getProvincia());
    assertEquals(utente.getTelefonoCasa(), utenteUpdate
        .getTelefonoCasa());
    assertEquals(utente.getTelefonoDomicilio(), utenteUpdate
        .getTelefonoDomicilio());
    assertEquals(utente.getTelefonoLavoro(), utenteUpdate
        .getTelefonoLavoro());
    assertEquals(utente.getTessera(), utenteUpdate.getTessera());

    dbUtenti.pulisciDb();
    dbCentro.pulisciDb();
  }
View Full Code Here

Examples of org.magicbox.domain.Utente

    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);
    assertNotNull(utenteRecuperato);

    assertEquals(_dao.deleteUtente(id, 46), true);
    assertNull(_dao.getUtente(id, 46));
View Full Code Here

Examples of org.magicbox.domain.Utente

      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);
    }

    assertEquals(1000, _dao.insertUtenti(utenti, 46));
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.