MessageDigestErrorEntry extends MessageDigestEntry { public void setStackTrace(String st) { stackTrace = st; } MessageDigestErrorEntry();  MessageDigestErrorEntry(String uniqueId, String workflowId);  MessageDigestErrorEntry(String uniqueId, String workflowId, Date date); @Override String toString(); void setStackTrace(String st); void setStackTrace(Exception e); String getStackTrace(); String getFileSystemPath(); void setFileSystemPath(String s); void setFileSystemFile(File f); MessageLifecycleEvent getLifecycleEvent(); void setLifecycleEvent(MessageLifecycleEvent event); void extractInfo(AdaptrisMessage msg);  }
@Test public void testSetStackTrace() throws Exception { MessageDigestErrorEntry entry = null; entry = new MessageDigestErrorEntry("123", "234"); assertNull(entry.getFileSystemPath()); assertNull(entry.getStackTrace()); Exception e = new Exception(this.getClass().getSimpleName()); entry.setStackTrace(e); assertNotNull(entry.getStackTrace()); entry.setStackTrace(e.getMessage()); assertEquals(e.getMessage(), entry.getStackTrace()); entry.setStackTrace((Exception) null); assertEquals("", entry.getStackTrace()); }