MessageLifecycleEvent extends Event implements Cloneable, Serializable { @Override public String toString() { return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("id", getMessageUniqueId()) .append("channelID", getChannelId()) .append("workflowID", getWorkflowId()) .append("messageEvents", getMleMarkers()).toString(); } MessageLifecycleEvent(); @Override String getNameSpace(); void addMleMarker(MleMarker event); List<MleMarker> getMleMarkers(); void setMleMarkers(List<MleMarker> l); void setMessageUniqueId(String uniqueId); String getMessageUniqueId(); String getChannelId(); void setChannelId(String s); void setWorkflowId(String s); String getWorkflowId(); @Override String toString(); @Override MessageLifecycleEvent clone();  }
@Test public void testMleMarkerSetName() throws Exception { MleMarker m = new MleMarker(); m.setName(DEFAULT_ID); try { m.setName(null); fail(); } catch (IllegalArgumentException expected) { } assertEquals(m.toString(), DEFAULT_ID, m.getName()); }
@Test public void testMleMarkerSetCreationTime() throws Exception { MleMarker m = new MleMarker(); m.setCreationTime(0); assertEquals(m.toString(), 0, m.getCreationTime()); }
@Test public void testMleMarkerSetSequenceNumber() throws Exception { MleMarker m = new MleMarker(); m.setSequenceNumber(0); assertEquals(m.toString(), 0, m.getSequenceNumber()); }
@Test public void testMleMarkerSetWasSuccessful() throws Exception { MleMarker m = new MleMarker(); m.setWasSuccessful(false); assertEquals(m.toString(), false, m.getWasSuccessful()); }
@Test public void testMleMarkerSetUniqueId() throws Exception { MleMarker m = new MleMarker(); m.setUniqueId(DEFAULT_ID); assertEquals(m.toString(), DEFAULT_ID, m.getUniqueId()); }
@Test public void testMleMarkerSetIsTrackingEndpoint() throws Exception { MleMarker m = new MleMarker(); m.setIsTrackingEndpoint(true); assertEquals(m.toString(), true, m.getIsTrackingEndpoint()); }
@Test @SuppressWarnings("deprecation") public void testMleMarkerSetIsConfirmation() throws Exception { MleMarker m = new MleMarker(); m.setIsConfirmation(true); assertEquals(m.toString(), true, m.getIsConfirmation()); }
@Test @SuppressWarnings("deprecation") public void testMleMarkerSetConfirmationId() throws Exception { MleMarker m = new MleMarker(); m.setConfirmationId(DEFAULT_ID); assertEquals(m.toString(), DEFAULT_ID, m.getConfirmationId()); }