Package org.magicbox.domain

Examples of org.magicbox.domain.AmministratoreLightImpl


  public void setUp() throws Exception {}
 
  public void tearDown() throws Exception {}
 
  public void testCostruttoreVuoto() {
    AmministratoreLight admin = new AmministratoreLightImpl();
    assertTrue(admin.getId() == -1 );
    assertTrue(admin.getIdCentro() == -1 );
    assertNull(admin.getNominativo());
    assertNull(admin.getUsername());
  }
View Full Code Here


    assertNull(admin.getNominativo());
    assertNull(admin.getUsername());
  }
 
  public void testCostruttorePieno() {
    AmministratoreLight admin = new AmministratoreLightImpl("pluto", "pluto", 0l,1l);
    assertTrue(admin.getId() == 1 );
    assertTrue(admin.getIdCentro() == 0 );
    assertEquals("pluto",admin.getNominativo());
    assertEquals("pluto",admin.getUsername());
  }
View Full Code Here

    centroLight.setNumeroDonatori(144);
    Centro centroView = new CentroImpl("http://www.magicbox.org","070123456","0701234567","desmatik@yahoo.it","Centro San Benedetto",indirizzo,centroLight);
    //use impl only for test
    RecapitoTelefonicoImpl recapito = new RecapitoTelefonicoImpl();
    recapito.setCellulare("3391234567");
    AmministratoreLight adminLight = new AmministratoreLightImpl("pippo","ciccio pasticcio", new Long(46),new Long(0));
    //use implement only for tests
    AmministratoreImpl admin = new AmministratoreImpl();
    admin.setRecapiti(recapito);
    admin.setAmministratoreLight(adminLight);
    admin.setSysadmin(false);
View Full Code Here

   
    assertTrue(_manager.getAmministratori().size()==0);
    //use impl only for test
    RecapitoTelefonicoImpl recapito = new RecapitoTelefonicoImpl();
    recapito.setCellulare("3391234567");
    AmministratoreLight adminLight = new AmministratoreLightImpl("pippo","ciccio pasticcio",new Long(46),new Long(0));
    //use implement only for tests
    AmministratoreImpl adminInsert = new AmministratoreImpl();
    adminInsert.setRecapiti(recapito);
    adminInsert.setAmministratoreLight(adminLight);
    adminInsert.setSysadmin(false);
    adminInsert.setEmail("pippo@yahoo.it");
    adminInsert.setPassword("hola");
   
    assertTrue(_manager.saveAmministratore(adminInsert) > 1);
    //use impl only for test
    RecapitoTelefonicoImpl recapitoBis = new RecapitoTelefonicoImpl();
    recapitoBis.setCellulare("3391234567");
    AmministratoreLight adminLightBis = new AmministratoreLightImpl("pippo","ciccio pasticcio",new Long(46),new Long(0));
    //use implement only for tests
    AmministratoreImpl admin = new AmministratoreImpl();
    admin.setRecapiti(recapito);
    admin.setAmministratoreLight(adminLightBis);
    admin.setSysadmin(false);
View Full Code Here

    dbCentro.preparaDb();
    DBAdmin dbAdmin = new DBAdmin();
    //use impl only for test
    RecapitoTelefonicoImpl recapito = new RecapitoTelefonicoImpl();
    recapito.setCellulare("3391234567");
    AmministratoreLight adminLight = new AmministratoreLightImpl("pippo","ciccio pasticcio",new Long(46),new Long(0));
    //use implement only for tests
    AmministratoreImpl adminInsert = new AmministratoreImpl();
    adminInsert.setRecapiti(recapito);
    adminInsert.setAmministratoreLight(adminLight);
    adminInsert.setSysadmin(false);
View Full Code Here

    assertEquals(admin.getEmail(),"centrotest@avis.it");
    assertEquals(admin.getNominativo(),"pippo");
    //use impl only for test
    RecapitoTelefonicoImpl recapito = new RecapitoTelefonicoImpl();
    recapito.setCellulare("3391928375");
    AmministratoreLight adminLight = new AmministratoreLightImpl(admin.getUsername(),"bjorn",new Long(46),admin.getId());
    //use implement only for tests
    AmministratoreImpl adminInsert = new AmministratoreImpl();
    adminInsert.setRecapiti(recapito);
    adminInsert.setAmministratoreLight(adminLight);
    adminInsert.setSysadmin(false);
View Full Code Here

    assertNotNull(admin);
    assertTrue(admin.getIdCentro() == 46);
    //use impl only for test
    RecapitoTelefonicoImpl recapito = new RecapitoTelefonicoImpl();
    recapito.setCellulare("3392233445");
    AmministratoreLight adminLight = new AmministratoreLightImpl(admin.getUsername(),"topo gigio",new Long(46),new Long(0));
    //use implement only for tests
    AmministratoreImpl adminUpdate = new AmministratoreImpl();
    adminUpdate.setRecapiti(recapito);
    adminUpdate.setAmministratoreLight(adminLight);
    adminUpdate.setSysadmin(false);
View Full Code Here

    DBCentro dbAdmin = new DBCentro();
    dbAdmin.preparaDb();
    //use impl only for test
    RecapitoTelefonicoImpl recapito = new RecapitoTelefonicoImpl();
    recapito.setCellulare("3391234567");
    AmministratoreLight adminLight = new AmministratoreLightImpl("pippo","ciccio pasticcio",new Long(46),0l);
    //use implement only for tests
    AmministratoreImpl adminInsert = new AmministratoreImpl();
    adminInsert.setRecapiti(recapito);
    adminInsert.setAmministratoreLight(adminLight);
    adminInsert.setSysadmin(false);
View Full Code Here

    DBCentro dbAdmin = new DBCentro();
    dbAdmin.preparaDb();
    //use impl only for test
    RecapitoTelefonicoImpl recapito = new RecapitoTelefonicoImpl();
    recapito.setCellulare("3391234567");
    AmministratoreLight adminLight = new AmministratoreLightImpl("pippo","ciccio pasticcio",new Long(46),0l);
    //use implement only for tests
    AmministratoreImpl adminInsert = new AmministratoreImpl();
    adminInsert.setRecapiti(recapito);
    adminInsert.setAmministratoreLight(adminLight);
    adminInsert.setSysadmin(false);
View Full Code Here

    DBCentro dbAdmin = new DBCentro();
    dbAdmin.preparaDb();
    //use impl only for test
    RecapitoTelefonicoImpl recapito = new RecapitoTelefonicoImpl();
    recapito.setCellulare("3391234567");
    AmministratoreLight adminLight = new AmministratoreLightImpl("pippo","ciccio pasticcio",new Long(46),0l);
    //use implement only for tests
    AmministratoreImpl adminInsert = new AmministratoreImpl();
    adminInsert.setRecapiti(recapito);
    adminInsert.setAmministratoreLight(adminLight);
    adminInsert.setSysadmin(false);
View Full Code Here

TOP

Related Classes of org.magicbox.domain.AmministratoreLightImpl

Copyright © 2018 www.massapicom. 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.