@Test public void setUserId() throws Exception { message2.setUserId(99143); assertEquals(99143, message2.getUserId()); }
public void setUserId(int userId) { this.userId = userId; }
ChatMessage { public void setUserId(int userId) { this.userId = userId; } }
ChatMessage { public void setUserId(int userId) { this.userId = userId; } ChatMessage(int groupId,
                       String content,
                       int userId,
                       String username,
                       Date timeSent); }
ChatMessage { public void setUserId(int userId) { this.userId = userId; } ChatMessage(int groupId,
                       String content,
                       int userId,
                       String username,
                       Date timeSent); int getMessageId(); void setMessageId(int messageId); int getGroupId(); void setGroupId(int groupId); String getContent(); void setContent(String content); int getUserId(); void setUserId(int userId); String getUsername(); void setUsername(String username); Date getTimeSent(); void setTimeSent(Date timeSent); boolean equalContent(ChatMessage o); @Override boolean equals(Object o); @Override int hashCode(); }
ChatMessage { public void setUserId(int userId) { this.userId = userId; } ChatMessage(int groupId,
                       String content,
                       int userId,
                       String username,
                       Date timeSent); int getMessageId(); void setMessageId(int messageId); int getGroupId(); void setGroupId(int groupId); String getContent(); void setContent(String content); int getUserId(); void setUserId(int userId); String getUsername(); void setUsername(String username); Date getTimeSent(); void setTimeSent(Date timeSent); boolean equalContent(ChatMessage o); @Override boolean equals(Object o); @Override int hashCode();  }