ProcessLog extends MetadataAPIBase { public ProcessLogInfo getLastValue(String pid, String msgId, String logCategory) { ProcessLogInfo processLogInfo = new ProcessLogInfo(); try { processLogInfo.setProcessId(Integer.parseInt(pid)); processLogInfo.setLogCategory(logCategory); processLogInfo.setMessageId(msgId); processLogInfo = processLogDAO.getLastValue(processLogInfo); return processLogInfo; } catch (Exception e) { LOGGER.error("Error occurred", e); throw new MetadataException(e); } } ProcessLog(); ProcessLogInfo getLastValue(String pid, String msgId, String logCategory); @Override ProcessLogInfo execute(String[] params); void log(ProcessLogInfo processLogInfo); void logList(List<ProcessLogInfo> processLogInfo); List<ProcessLogInfo> listLastInstanceRef(int processId, String messageId);  }
@Ignore @Test public void testGetLastValue() throws Exception { ProcessLog processLog = new ProcessLog(); ProcessLogInfo processLogInfo = processLog.getLastValue("9000", "last value", "ImpTable"); LOGGER.debug("executed!"); }