Examples of UtenteLight


Examples of org.magicbox.domain.UtenteLight

    db.preparaDb();

    List<UtenteLight> utenti = _service.getUtentiCentro(46, 0);
    List<String> ids = new ArrayList<String>();
    for (int i = 0; i < 15; i++) {
      UtenteLight utente = utenti.get(i);
      ids.add(String.valueOf(utente.getId()));
    }
    _service.aggiornaUtenti(ids, 1);
    assertEquals(_service.getUtentiGruppo(46, 1).size(), 15);

    db.pulisciDb();
View Full Code Here

Examples of org.magicbox.domain.UtenteLight

    dbCentro.preparaDb();
    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.UtenteLight

    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);
View Full Code Here

Examples of org.magicbox.domain.UtenteLight

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

    utente = _dao.getUtente(id, 46);
View Full Code Here

Examples of org.magicbox.domain.UtenteLight

    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);
    assertNotNull(utenteRecuperato);
View Full Code Here

Examples of org.magicbox.domain.UtenteLight

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

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

Examples of org.magicbox.domain.UtenteLight

    db.preparaDb();

    List<UtenteLight> utenti = _dao.getUtentiCentro(46, 0);
    List<String> ids = new ArrayList<String>();
    for (int i = 0; i < 15; i++) {
      UtenteLight utente = utenti.get(i);
      ids.add(String.valueOf(utente.getId()));
    }
    _dao.aggiornaUtenti(ids, 1);
    assertEquals(_dao.getUtentiGruppo(46, 1).size(), 15);

    db.pulisciDb();
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.