Package test.org.magicbox.dbunit

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


        .getTelefonoDomicilio());
    assertEquals(utente.getTelefonoLavoro(), utenteRecuperato
        .getTelefonoLavoro());
    assertEquals(utente.getTessera(), utenteRecuperato.getTessera());

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


    assertEquals(_service.getUtentiCentro(46, 0).size(), 15);
    assertTrue(_service.deleteAllUtenti(46));
    assertEquals(_service.getUtentiCentro(46, 0).size(), 0);

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

      utenti.add(utente);
    }

    assertEquals(1000, _service.insertUtenti(utenti, 46));

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

    assertEquals(_service.getUtentiByNominativo("baldussi", 46, 0).size(),
        1);
    assertEquals(_service.getUtentiByNominativo("baldussu", 46, 0).size(),
        14);

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

    assertEquals(_service.getUtentiByAlfabetico("a", 46, 0).size(), 0);
    assertEquals(_service.getUtentiByAlfabetico("b", 46, 0).size(), 15);
    assertEquals(_service.getUtentiByAlfabetico("c", 46, 0).size(), 0);

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

    assertEquals(_service.getUtentiByCitta("cagliari", 46, 0).size(), 10);
    assertEquals(_service.getUtentiByCitta("milano", 46, 0).size(), 4);
    assertEquals(_service.getUtentiByCitta("goito", 46, 0).size(), 1);

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

    assertEquals(_service.getUtentiByProvincia("CA", 46, 0).size(), 11);
    assertEquals(_service.getUtentiByProvincia("MI", 46, 0).size(), 3);
    assertEquals(_service.getUtentiByProvincia("MN", 46, 0).size(), 1);

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

    assertEquals(_service.getUtentiByCap("09100", 46, 0).size(), 11);
    assertEquals(_service.getUtentiByCap("09129", 46, 0).size(), 2);
    assertEquals(_service.getUtentiByCap("09128", 46, 0).size(), 1);
    assertEquals(_service.getUtentiByCap("46010", 46, 0).size(), 1);

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

    dbCentro.preparaDb();
    db.preparaDb();

    assertEquals(_service.getNumeroUtenti(46), 15);

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

      ids.add(String.valueOf(utente.getId()));
    }
    _service.aggiornaUtenti(ids, 1);
    assertEquals(_service.getUtentiGruppo(46, 1).size(), 15);

    db.pulisciDb();
    dbCentro.pulisciDb();
    db = null;
    dbCentro = null;
  }
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.