Examples of RecordsData


Examples of org.jresearch.gossip.list.RecordsData

    }
  }

  final public void testFillLogEntryListWARN() 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("WARN");
    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);
  }
View Full Code Here

Examples of org.jresearch.gossip.list.RecordsData

    assertTrue(records.getRecordsCount() == 0);
  }

  final public void testFillLogEntryListINFO() 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("INFO");
    criteria.setLogger("FORUM");
    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);
  }
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.