FlowInfo implements Serializable { @Override public String toString() { StringBuffer buf = new StringBuffer(); buf.append("Flow (id = ").append(identifier).append(")").append(NEWLINE); buf.append("- overall status = ").append(status).append(NEWLINE); buf.append("- application = ").append(application).append(NEWLINE); buf.append("- create time = ").append(dateString(creationTime)).append(NEWLINE); buf.append("- replayable = ").append(replayable).append(NEWLINE); buf.append("- replay time = ").append(dateString(replayTime)).append(NEWLINE); buf.append("- replay count = ").append(replayCount).append(NEWLINE); buf.append("- ACK count (expected) = ").append(ackCountExpected).append(NEWLINE); buf.append("- ACK count (actual) = ").append(ackCount).append(NEWLINE); buf.append("- NAK count = ").append(nakCount).append(NEWLINE); buf.append("- text = ").append(textString(text)).append(NEWLINE); for (FlowPartInfo partInfo : getPartInfos()) { buf.append(partInfo.toString()); } return buf.toString(); } FlowInfo(); String getStatus(); void setStatus(String status); String getApplication(); void setApplication(String application); int getAckCount(); void setAckCount(int ackCount); int getAckCountExpected(); void setAckCountExpected(int ackCountExpected); Date getCreationTime(); void setCreationTime(Date creationTime); Long getIdentifier(); void setIdentifier(Long identifier); int getNakCount(); void setNakCount(int nakCount); boolean isReplayable(); void setReplayable(boolean replayable); int getReplayCount(); void setReplayCount(int replayCount); Date getReplayTime(); void setReplayTime(Date replayTime); Set<FlowPartInfo> getPartInfos(); String getText(); void setText(String text); @Override String toString(); static final int ACK_COUNT_EXPECTED_UNDEFINED; }
@Test public void testToString() { }