Package test.org.magicbox.dbunit

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


    assertEquals(_dao.getUtentiByNominativo("baldus", 46, 0).size(), 15);
    assertEquals(_dao.getUtentiByNominativo("balduss", 46, 0).size(), 15);
    assertEquals(_dao.getUtentiByNominativo("baldussi", 46, 0).size(), 1);
    assertEquals(_dao.getUtentiByNominativo("baldussu", 46, 0).size(), 14);

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


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

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

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

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

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

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

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

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

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

    assertEquals(_dao.getNumeroUtentiCentro(46), 15);

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

    assertEquals(_dao.getUtentiGruppo(46, 1).size(), 5);
    assertEquals(_dao.getUtentiGruppo(46, 2).size(), 3);
    assertEquals(_dao.getUtentiGruppo(46, 3).size(), 6);
    assertEquals(_dao.getUtentiGruppo(46, 4).size(), 1);

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

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

    assertEquals(_dao.getUtentiCentroLiberi(46).size(), 0);

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

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

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

    assertEquals(_dao.getUtentiGruppo(46, 3).size(), 6);
    assertEquals(_dao.updateCancellazioneGruppo(3), true);
    assertEquals(_dao.getUtentiCentroLiberi(46).size(), 6);

    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.