Package test.org.magicbox.dbunit

Examples of test.org.magicbox.dbunit.DBUrls


    _ctx = SpringFactory.getXmlWebApplicationContext();
    _dao = (UrlsDao) _ctx.getBean("magicbox.admin.urlsDao");
  }
 
  public void testSelectConfigUrl(){
    DBUrls dbUrls= new DBUrls();
    dbUrls.preparaDb();
   
    UrlDTO urlDto = _dao.getUrls(1);
    assertNotNull(urlDto);
    assertTrue(urlDto.getUrl().equals("/*.admin"));
    assertTrue(urlDto.getRoleType().equals(Constant.ROLE_ADMIN));
   
    dbUrls.pulisciDb();
  }
 
View Full Code Here


  }
 
 
 
  public void testInsertUrl() {
    DBUrls dbUrls= new DBUrls();
   
    UrlDTO urlDto = new UrlDTO();
    urlDto.setRoleType("ROLE_ROOT");
    urlDto.setUrl("/*");
    assertTrue(_dao.insertUrl(urlDto) > 0);
   
    dbUrls.pulisciDb();
   
  }
View Full Code Here

    dbUrls.pulisciDb();
   
  }
 
  public void testDeleteUrl() {
    DBUrls dbUrls = new DBUrls();
    dbUrls.preparaDb();
   
    assertTrue(_dao.deleteUrl(1) == 1);
   
    dbUrls.pulisciDb();
  }
View Full Code Here

    dbUrls.pulisciDb();
  }
 
 
  public void testUpdateUrl() {
    DBUrls dbUrls = new DBUrls();
    dbUrls.preparaDb();
   
    UrlDTO urlDto = new UrlDTO();
    urlDto.setRoleType("ROLE_ROOT");
    urlDto.setUrl("/*.EXOTIC_EXTENSION");
    urlDto.setId(new Long(1));
    assertTrue(_dao.updateUrl(urlDto) == 1);
   
    dbUrls.pulisciDb();
  }
View Full Code Here

TOP

Related Classes of test.org.magicbox.dbunit.DBUrls

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.