Package test.org.magicbox.dbunit

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


    Amministratore adminRetrieve = _dao.getAmministratore(id);
    assertNotNull(adminRetrieve);
    _dao.deleteAmministratore(id,46);
   
    dbAdmin.pulisciDb();
    dbCredentials.pulisciDb();
    dbAdmin = null;
    dbCredentials = null;
  }
 
 
View Full Code Here


    assertTrue(idCentro == 46);

    _dao.deleteAmministratore(id,46);
   
    dbAdmin.pulisciDb();
    dbCredentials.pulisciDb();
  }
 
  public void testAdminsByNominativo() {
    //inserisce il centro con id 46
    DBCredentials dbCredentials = new DBCredentials();
View Full Code Here

    assertEquals(adminInsert.getNominativo(), adminRetrieve.getNominativo());

    _dao.deleteAmministratore(id,46);
   
    dbAdmin.pulisciDb();
    dbCredentials.pulisciDb();
    dbAdmin = null;
    dbCredentials = null;
  }
 
  public void testAdminsByAlfabetico() {
View Full Code Here

    assertEquals(adminInsert.getNominativo(), adminRetrieve.getNominativo());

    _dao.deleteAmministratore(id,46);
   
    dbAdmin.pulisciDb();
    dbCredentials.pulisciDb();
    dbAdmin = null;
    dbCredentials = null;
  }
 
 
View Full Code Here

    assertEquals(adminInsert.isSysadmin(), adminRetrieve.isSysadmin());
    assertEquals(adminInsert.getUsername(), adminRetrieve.getUsername());
    _dao.deleteAmministratore(id,46);
   
    dbAdmin.pulisciDb();
    dbCredentials.pulisciDb();
    dbAdmin = null;
    dbCredentials = null;
  }
 
  public void testGetAmministratoreByUserName() {
View Full Code Here

    assertEquals(adminInsert.isSysadmin(), adminRetrieve.isSysadmin());
    assertEquals(adminInsert.getUsername(), adminRetrieve.getUsername());
    _dao.deleteAmministratore(id,46);
   
    dbAdmin.pulisciDb();
    dbCredentials.pulisciDb();
    dbAdmin = null;
    dbCredentials = null;
  }
 
  public void testGetAmministratori() {
View Full Code Here

      lista = _dao.getAmministratori();
      assertEquals(lista.size(), 1);
    _dao.deleteAmministratore(id,46);
   
    dbAdmin.pulisciDb();
    dbCredentials.pulisciDb();
    dbAdmin = null;
    dbCredentials = null;
  }
 
  public void testUpdateAmministratore() {
View Full Code Here

    assertEquals(adminRetrieve.getUsername(), adminUpdate.getUsername());
   
    _dao.deleteAmministratore(id,46);
   
    dbadmin.pulisciDb();
    dbCreds.pulisciDb();   
    dbCentro.pulisciDb();
    dbCentro = null;
    dbadmin = null;
  }
 
View Full Code Here

    assertTrue(_dao.insertCredentials(credenziali));;
    Credenziali retrieve =_dao.getAdminByUsername("pippo");
    assertEquals(credenziali.getUsername(), retrieve.getUsername());
    assertNull(retrieve.getPassword());

    dbCredentials.pulisciDb();
    dbCredentials = null;
  }
 
  public void testGetUser() {
    // inserisco max e pippo sul db
View Full Code Here

    Credenziali credenziali = _dao.getUser("pippo", Cripto.stringToSHA("pippo"));

    assertEquals(credenziali.getUsername(),"pippo");
    assertNull(credenziali.getPassword());

    dbCredentials.pulisciDb();
    dbCredentials = null;
  }
 
  public void testUpdateCredentials() {
    // inserisco max e pippo sul db
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.