@Test public void testToString() { envelope.setDispatchId(42); assertTrue(envelope.toString().startsWith("JmsOutboundMessageDispatch")); assertTrue(envelope.toString().contains("42")); }
@Override public String toString() { if (stringView == null) { StringBuilder value = new StringBuilder(); value.append("JmsOutboundMessageDispatch {dispatchId = "); value.append(getProducerId()); value.append("-"); value.append(getDispatchId()); value.append(", MessageID = "); try { value.append(message.getJMSMessageID()); } catch (Throwable e) { value.append("<unknown>"); } value.append(" }"); stringView = value.toString(); } return stringView; }
JmsOutboundMessageDispatch { @Override public String toString() { if (stringView == null) { StringBuilder value = new StringBuilder(); value.append("JmsOutboundMessageDispatch {dispatchId = "); value.append(getProducerId()); value.append("-"); value.append(getDispatchId()); value.append(", MessageID = "); try { value.append(message.getJMSMessageID()); } catch (Throwable e) { value.append("<unknown>"); } value.append(" }"); stringView = value.toString(); } return stringView; } }
JmsOutboundMessageDispatch { @Override public String toString() { if (stringView == null) { StringBuilder value = new StringBuilder(); value.append("JmsOutboundMessageDispatch {dispatchId = "); value.append(getProducerId()); value.append("-"); value.append(getDispatchId()); value.append(", MessageID = "); try { value.append(message.getJMSMessageID()); } catch (Throwable e) { value.append("<unknown>"); } value.append(" }"); stringView = value.toString(); } return stringView; }  }
JmsOutboundMessageDispatch { @Override public String toString() { if (stringView == null) { StringBuilder value = new StringBuilder(); value.append("JmsOutboundMessageDispatch {dispatchId = "); value.append(getProducerId()); value.append("-"); value.append(getDispatchId()); value.append(", MessageID = "); try { value.append(message.getJMSMessageID()); } catch (Throwable e) { value.append("<unknown>"); } value.append(" }"); stringView = value.toString(); } return stringView; }  JmsDestination getDestination(); void setDestination(JmsDestination destination); Object getMessageId(); JmsMessage getMessage(); void setMessage(JmsMessage message); Object getPayload(); void setPayload(Object payload); JmsProducerId getProducerId(); void setProducerId(JmsProducerId producerId); void setSendAsync(boolean sendAsync); boolean isSendAsync(); long getDispatchId(); void setDispatchId(long dispatchId); boolean isPresettle(); void setPresettle(boolean presettle); boolean isCompletionRequired(); void setCompletionRequired(boolean completionRequired); @Override String toString(); }
JmsOutboundMessageDispatch { @Override public String toString() { if (stringView == null) { StringBuilder value = new StringBuilder(); value.append("JmsOutboundMessageDispatch {dispatchId = "); value.append(getProducerId()); value.append("-"); value.append(getDispatchId()); value.append(", MessageID = "); try { value.append(message.getJMSMessageID()); } catch (Throwable e) { value.append("<unknown>"); } value.append(" }"); stringView = value.toString(); } return stringView; }  JmsDestination getDestination(); void setDestination(JmsDestination destination); Object getMessageId(); JmsMessage getMessage(); void setMessage(JmsMessage message); Object getPayload(); void setPayload(Object payload); JmsProducerId getProducerId(); void setProducerId(JmsProducerId producerId); void setSendAsync(boolean sendAsync); boolean isSendAsync(); long getDispatchId(); void setDispatchId(long dispatchId); boolean isPresettle(); void setPresettle(boolean presettle); boolean isCompletionRequired(); void setCompletionRequired(boolean completionRequired); @Override String toString();  }