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();
}