Examples of CentroImpl


Examples of org.magicbox.domain.CentroImpl

    CentroLightImpl centroLight = new CentroLightImpl();
    centroLight.setCreditoResiduoSms(1000);
    centroLight.setId(0);
    centroLight.setNomeCentro("Casa mia");
    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
View Full Code Here

Examples of org.magicbox.domain.CentroImpl

    CentroLightImpl centroLight = new CentroLightImpl();
    centroLight.setCreditoResiduoSms(200);
    centroLight.setId(0);
    centroLight.setNomeCentro("n");
    centroLight.setNumeroDonatori(300);
    Centro centro = new CentroImpl("http://www.casa.org","070123456","070234567","casa@avis.it","descrizione",indirizzo,centroLight);
   
    Errors errors = new BindException(centro, "command");

    _validator.validate(centro, errors);
View Full Code Here

Examples of org.magicbox.domain.CentroImpl

    CentroLightImpl centroLight = new CentroLightImpl();
    centroLight.setCreditoResiduoSms(200);
    centroLight.setId(0);
    centroLight.setNomeCentro("nome centro");
    centroLight.setNumeroDonatori(300);
    Centro centro = new CentroImpl("http://www.casa.org","070123456","070234567","casa@avis.it","descrizione",indirizzo,centroLight);
   
    Errors errors = new BindException(centro, "command");

    _validator.validate(centro, errors);
View Full Code Here

Examples of org.magicbox.domain.CentroImpl

    CentroLightImpl centroLight = new CentroLightImpl();
    centroLight.setCreditoResiduoSms(200);
    centroLight.setId(0);
    centroLight.setNomeCentro("nome centro");
    centroLight.setNumeroDonatori(300);
    Centro centro = new CentroImpl("http://","070123456","070234567","casa@avis.it","descrizione",indirizzo,centroLight);
   
    Errors errors = new BindException(centro, "command");

    _validator.validate(centro, errors);
View Full Code Here

Examples of org.magicbox.domain.CentroImpl

    CentroLightImpl centroLight = new CentroLightImpl();
    centroLight.setCreditoResiduoSms(200);
    centroLight.setId(0);
    centroLight.setNomeCentro("nome centro");
    centroLight.setNumeroDonatori(300);
    Centro centro = new CentroImpl("http://www.casamia.org","ac","070234567","casa@avis.it","descrizione",indirizzo,centroLight);
   
    Errors errors = new BindException(centro, "command");

    _validator.validate(centro, errors);
View Full Code Here

Examples of org.magicbox.domain.CentroImpl

    CentroLightImpl centroLight = new CentroLightImpl();
    centroLight.setCreditoResiduoSms(200);
    centroLight.setId(0);
    centroLight.setNomeCentro("nome centro");
    centroLight.setNumeroDonatori(300);
    Centro centro = new CentroImpl("http://www.casamia.org","070123456","070234567","casa@avis.it","de",indirizzo,centroLight);
   
    Errors errors = new BindException(centro, "command");

    _validator.validate(centro, errors);
View Full Code Here

Examples of org.magicbox.domain.CentroImpl

  public void setUp() throws Exception {}
 
  public void tearDown() throws Exception {}
 
  public void testCostruttoreVuoto() {
    Centro centro = new CentroImpl();   
    assertNull(centro.getCap());
    assertNull(centro.getCitta());
    assertNull(centro.getDescrizione());
    assertNull(centro.getEmail());
    assertNull(centro.getFax());
    assertNull(centro.getIndirizzo());
    assertNull(centro.getNomeCentro());
    assertNull(centro.getProvincia());
    assertNull(centro.getSitoWeb());
    assertNull(centro.getTelefono());
    assertEquals(0,centro.getCreditoResiduoSms());
    assertTrue(centro.getId() == 0);
    assertEquals(0,centro.getNumeroDonatori());
  }
View Full Code Here

Examples of org.magicbox.domain.CentroImpl

    CentroLightImpl centroLight = new CentroLightImpl();
    centroLight.setCreditoResiduoSms(200);
    centroLight.setId(46);
    centroLight.setNomeCentro("Centro del quartiere di S.Benedetto");
    centroLight.setNumeroDonatori(200);
    Centro centro = new CentroImpl("http://magic-box.wiki.sourceforge.net/",
        "070789123", "0709876543", "gooo46@yahoo.it",
         "Cagliari Due", indirizzo, centroLight);
   
    assertEquals("09100",centro.getCap());
    assertEquals("cagliari",centro.getCitta());
    assertEquals("Cagliari Due",centro.getDescrizione());
    assertEquals("gooo46@yahoo.it",centro.getEmail());
    assertEquals("0709876543",centro.getFax());
    assertEquals("casamia 3",centro.getIndirizzo());
    assertEquals("Centro del quartiere di S.Benedetto",centro.getNomeCentro());
    assertEquals("CA",centro.getProvincia());
    assertEquals("http://magic-box.wiki.sourceforge.net/",centro.getSitoWeb());
    assertEquals("070789123",centro.getTelefono());
    assertEquals(200,centro.getCreditoResiduoSms());
    assertEquals(46,centro.getId());
    assertEquals(200,centro.getNumeroDonatori());
  }
View Full Code Here

Examples of org.magicbox.domain.CentroImpl

    centroLight.setCreditoResiduoSms(1000);
    centroLight.setId(0);
    centroLight.setNomeCentro("Casa mia");
    centroLight.setNumeroDonatori(144);
   
    Centro centro = new CentroImpl("http://www.magicbox.org","070123456","0701234567","desmatik@yahoo.it","Centro San Benedetto",indirizzo,centroLight);
    long idCentro = _manager.saveCentro(centro);

    assertTrue(_manager.getNumeroCentri() == 1);

   
    Indirizzo indirizzoTwo = new IndirizzoImpl("09100","Oliena","NU","Via Tiscali 1");
    //use impl only for test
    CentroLightImpl centroLightTwo = new CentroLightImpl();
    centroLightTwo.setCreditoResiduoSms(2000);
    centroLightTwo.setId(0);
    centroLightTwo.setNomeCentro("Casa");
    centroLightTwo.setNumeroDonatori(288);
    Centro centroTwo = new CentroImpl("http://www.magicbox.uk","070654321","0707654321","zolagf@yahoo.it","Su cologone",indirizzoTwo,centroLightTwo);
   
    long idTwo = _manager.saveCentro(centroTwo);

    assertTrue(_manager.getNumeroCentri() == 2);
View Full Code Here

Examples of org.magicbox.domain.CentroImpl

    CentroLightImpl centroLight = new CentroLightImpl();
    centroLight.setCreditoResiduoSms(1000);
    centroLight.setId(0);
    centroLight.setNomeCentro("Casa mia");
    centroLight.setNumeroDonatori(144);
    Centro centro = new CentroImpl("http://www.magicbox.org","070123456","0701234567","desmatik@yahoo.it","Centro San Benedetto",indirizzo,centroLight);
    long id = _manager.saveCentro(centro);

    assertTrue(_manager.getNumeroCentri() == 1);

    _manager.deleteCentro(id);
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.