Package test.org.magicbox.dbunit

Examples of test.org.magicbox.dbunit.DBConfig


   
    dbUrls.pulisciDb();
  }
 
  public void testInsertConfigUrl(String url){
    DBConfig dbConfig= new DBConfig();
    assertNull( _dao.getConfigUrl());
    String urlConfig="CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON\n"+
      "PATTERN_TYPE_APACHE_ANT\n"+
      "/*.admin=ROLE_ADMIN\n"+
      "/*.page=ROLE_ADMIN,ROLE_USER\n"+
      "/*.csv=ROLE_USER\n"+
      "/*.pdf=ROLE_USER\n"+
      "/*.xls=ROLE_USER\n"+
      "/*.htm=ROLE_USER\n"+
      "/*.graph=ROLE_USER\n"+
      "/dwr/*=ROLE_USER,ROLE_ADMIN\n"+
      "/feed/atom.xml=ROLE_ADMIN,ROLE_USER,ROLE_ANON\n"+
      "/feed/rss.xml=ROLE_ANON,ROLE_USER,ROLE_ADMIN\n";
    assertTrue(_dao.insertConfigUrl(urlConfig) > 0);
    dbConfig.pulisciDb();
  }
View Full Code Here


    assertTrue(_dao.insertConfigUrl(urlConfig) > 0);
    dbConfig.pulisciDb();
  }
 
  public void testUpdateConfigUrl(){
    DBConfig dbConfig= new DBConfig();
    dbConfig.preparaDb();
    String urlConfig="CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON\n"+
      "PATTERN_TYPE_APACHE_ANT\n"+
      "/pippo.admin=ROLE_ADMIN\n"+
      "/pluto.page=ROLE_ADMIN,ROLE_USER\n"+
      "/paperino.csv=ROLE_USER\n"+
      "/ciccio.pdf=ROLE_USER\n"+
      "/paperone.xls=ROLE_USER\n"+
      "/paperinik.htm=ROLE_USER\n"+
      "/archimede.graph=ROLE_USER\n"+
      "/dwr/*=ROLE_USER,ROLE_ADMIN\n"+
      "/feed/atom.xml=ROLE_ADMIN,ROLE_USER,ROLE_ANON\n"+
      "/feed/rss.xml=ROLE_ANON,ROLE_USER,ROLE_ADMIN\n";
    assertTrue(_dao.updateConfigUrl(urlConfig) == 1);
    dbConfig.pulisciDb();
  }
View Full Code Here

   
    dbUrls.pulisciDb();
  }
 
  public void testSelectUrl() {
    DBConfig dbConfig = new DBConfig();
    dbConfig.preparaDb();
   
    String acegiUrl = _dao.getConfigUrl();
    assertTrue(acegiUrl.length() > 47);
   
    dbConfig.pulisciDb();
  }
View Full Code Here

TOP

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

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.