ProcessLog extends MetadataAPIBase { public void log(ProcessLogInfo processLogInfo) { try { processLogDAO.log(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 testLog() throws Exception { ProcessLog processLog = new ProcessLog(); ProcessLogInfo processLogInfo = new ProcessLogInfo(); processLogInfo.setProcessId(new Integer("1")); processLogInfo.setAddTs(new Date()); processLogInfo.setInstanceRef(1L); processLogInfo.setLogCategory("Category1"); processLogInfo.setMessageId("Id 1"); processLogInfo.setMessage("Message 1"); processLog.log(processLogInfo); }