@Test public void testEquals() { MessageEntry entry = new MessageEntry(1l, "message"); MessageEntry other = new MessageEntry(1l, "not same"); assertThat(entry.equals(entry), is(true)); assertThat(entry.equals("string"), is(false)); assertThat(entry.equals(null), is(false)); assertThat(entry.equals(other), is(false)); entry.setElapseTime(new ElapseTimeEntry()); assertThat(entry.equals(other), is(false)); other.setElapseTime(new ElapseTimeEntry()); assertThat(entry.equals(other), is(false)); }
public void setElapseTime(ElapseTimeEntry elapseTime) { this.elapseTime = elapseTime; }
MessageEntry extends Entry implements ElapseTimeAware, MessageAwareEntry { public void setElapseTime(ElapseTimeEntry elapseTime) { this.elapseTime = elapseTime; } }
MessageEntry extends Entry implements ElapseTimeAware, MessageAwareEntry { public void setElapseTime(ElapseTimeEntry elapseTime) { this.elapseTime = elapseTime; } MessageEntry();  MessageEntry(String message);  MessageEntry(Long requestId, String message);  MessageEntry(String message, ElapseTimeEntry elapseTime);  MessageEntry(Long requestId, String message, ElapseTimeEntry elapseTime); }
MessageEntry extends Entry implements ElapseTimeAware, MessageAwareEntry { public void setElapseTime(ElapseTimeEntry elapseTime) { this.elapseTime = elapseTime; } MessageEntry();  MessageEntry(String message);  MessageEntry(Long requestId, String message);  MessageEntry(String message, ElapseTimeEntry elapseTime);  MessageEntry(Long requestId, String message, ElapseTimeEntry elapseTime); String getMessage(); void setMessage(String message); ElapseTimeEntry getElapseTime(); void setElapseTime(ElapseTimeEntry elapseTime); }
MessageEntry extends Entry implements ElapseTimeAware, MessageAwareEntry { public void setElapseTime(ElapseTimeEntry elapseTime) { this.elapseTime = elapseTime; } MessageEntry();  MessageEntry(String message);  MessageEntry(Long requestId, String message);  MessageEntry(String message, ElapseTimeEntry elapseTime);  MessageEntry(Long requestId, String message, ElapseTimeEntry elapseTime); String getMessage(); void setMessage(String message); ElapseTimeEntry getElapseTime(); void setElapseTime(ElapseTimeEntry elapseTime);  }