OperationLogIbatisDao extends SqlMapClientDaoSupport implements OperationLogDao { @SuppressWarnings("unchecked") @Override public List<OperationLog> getLogList(OperationLogCriteria logCriteria, Paginater<OperationLog> paginater) { return getSqlMapClientTemplate().queryForList("OperationLog.getOpLogList", Maps.entry("criteria", logCriteria) .entry("paginater", paginater).get()); }  @Override long getLogCount(OperationLogCriteria logCriteria, Paginater<OperationLog> paginater); @SuppressWarnings("unchecked") @Override List<OperationLog> getLogList(OperationLogCriteria logCriteria, Paginater<OperationLog> paginater); @Override int insertOpLog(OperationLog oplog); @Override String getLogKey(int logId, String key);  }
@Test public void testGetLogList() throws Exception { OperationLogCriteria criteria = new OperationLogCriteria(); criteria.setProjectId(Project_Foo_Id); criteria.setEnvId(Env1_Id); String opType = OperationTypeEnum.Config_All.getBegin() + "|" + OperationTypeEnum.Config_All.getEnd() + "|" + OperationTypeEnum.Config_All.isProjectRelated(); criteria.setOpType(opType); Paginater<OperationLog> paginater = new Paginater<OperationLog>(); List<OperationLog> logList = operationLogDao.getLogList(criteria, paginater); assertEquals(2, logList.size()); }