Package test.org.magicbox.dbunit

Examples of test.org.magicbox.dbunit.DBAnnunci.preparaDb()


    _service = (FeedService) _ctx.getBean("magicbox.feedService");
  }

  public void testGetFeed() {
    DBAnnunci dbannunci = new DBAnnunci();
    dbannunci.preparaDb();
    try {
      SyndFeed synF = _service.getFeed(Constant.FEED_TEXT);
      assertNotNull(synF);
      assertEquals(synF.getEntries().size(), 9);
      assertEquals(((SyndEntryImpl) synF.getEntries().get(0)).getTitle(),
View Full Code Here


 
 
  public void testGetAnnunciPaginato(){
   
    DBAnnunci dbAnnunci= new DBAnnunci();
    dbAnnunci.preparaDb();

    List<Annuncio> mail = _service.getAnnunci(Constant.TYPE_MAIL,0,2);
    assertEquals(mail.size(), 1);
   
    List<Annuncio> sms = _service.getAnnunci(Constant.TYPE_SMS,0,2);
View Full Code Here

    _dao = (AnnunciDao) _ctx.getBean("magicbox.annunciDao");
  }
 
  public void testGetAnnunciTipo() {
    DBAnnunci dbAnnunci= new DBAnnunci();
    dbAnnunci.preparaDb();
   
    List<Annuncio> mails =_dao.getAnnunci(Constant.TYPE_MAIL);//1
    List<Annuncio> sms = _dao.getAnnunci(Constant.TYPE_SMS);//2
    List<Annuncio> feed = _dao.getAnnunci(Constant.TYPE_FEED);//3
    assertEquals(mails.size(), 1);
View Full Code Here

    dbAnnunci = null;
  }
 
  public void testGetAnnunciTipoCentro() {
    DBAnnunci dbAnnunci= new DBAnnunci();
    dbAnnunci.preparaDb();

    List<Annuncio> mail = _dao.getAnnunci(Constant.TYPE_MAIL,0,2);
    assertEquals(mail.size(), 1);
   
    List<Annuncio> sms = _dao.getAnnunci(Constant.TYPE_SMS,0,2);
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.