@Test public void testMessage() { Timestamp s = new Timestamp(1); Message message = new Message("1", 1L, 2L, s, ""); Assert.assertEquals(s, message.getSendTime()); }
public Message(String id, Long senderId, Long receiverId, Timestamp sendTime, String content) { setId(id); setContent(content); setReceiverId(receiverId); setSenderId(senderId); setSendTime(sendTime); }
Message { public Message(String id, Long senderId, Long receiverId, Timestamp sendTime, String content) { setId(id); setContent(content); setReceiverId(receiverId); setSenderId(senderId); setSendTime(sendTime); } }
Message { public Message(String id, Long senderId, Long receiverId, Timestamp sendTime, String content) { setId(id); setContent(content); setReceiverId(receiverId); setSenderId(senderId); setSendTime(sendTime); } Message(String id, Long senderId, Long receiverId, Timestamp sendTime, String content);  Message(Long senderId, Long receiverId, Timestamp sendTime, String content);  Message(); }
Message { public Message(String id, Long senderId, Long receiverId, Timestamp sendTime, String content) { setId(id); setContent(content); setReceiverId(receiverId); setSenderId(senderId); setSendTime(sendTime); } Message(String id, Long senderId, Long receiverId, Timestamp sendTime, String content);  Message(Long senderId, Long receiverId, Timestamp sendTime, String content);  Message(); String getId(); void setId(String id); Long getSenderId(); void setSenderId(Long senderId); Long getReceiverId(); void setReceiverId(Long receiverId); Timestamp getSendTime(); void setSendTime(Timestamp sendTime); String getContent(); void setContent(String content); }
Message { public Message(String id, Long senderId, Long receiverId, Timestamp sendTime, String content) { setId(id); setContent(content); setReceiverId(receiverId); setSenderId(senderId); setSendTime(sendTime); } Message(String id, Long senderId, Long receiverId, Timestamp sendTime, String content);  Message(Long senderId, Long receiverId, Timestamp sendTime, String content);  Message(); String getId(); void setId(String id); Long getSenderId(); void setSenderId(Long senderId); Long getReceiverId(); void setReceiverId(Long receiverId); Timestamp getSendTime(); void setSendTime(Timestamp sendTime); String getContent(); void setContent(String content);  }