super.tearDown();
}
final public void testFillLogEntryList() throws Exception
{
RecordsData records = new RecordsData();
User user = null;
records.setBlockSize((null != user)?user.getSettings().getMes_per_page():25);
LogSearchCriteria criteria = new LogSearchCriteria();
criteria.setFrom(from);
criteria.setTo(to);
criteria.setLog_level(IConst.VALUES.ALL);
criteria.setLogger(IConst.VALUES.ALL);
criteria.setRemote_ip(IConst.VALUES.ALL);
criteria.setSession_id(IConst.VALUES.ALL);
criteria.setUser_name(IConst.VALUES.ALL);
int block = 1;
dao.fillLogEntryList(criteria, records, block);
Iterator it = records.getRecords().iterator();
assertTrue(it.hasNext());
assertTrue(records.getRecordsCount() > 0);
while(it.hasNext()) {
LogEntry obj = (LogEntry)it.next();
System.out.print(String.valueOf(obj.getLog_date()));
System.out.print(", "+ String.valueOf(obj.getLog_level()));
System.out.print(", "+String.valueOf(obj.getLogger()));