@Test public void setUserId() throws Exception { groupMembership2.setUserId(65656); assertEquals(65656, groupMembership2.getUserId()); }
public void setUserId(int userId) { this.userId = userId; }
GroupMembership { public void setUserId(int userId) { this.userId = userId; } }
GroupMembership { public void setUserId(int userId) { this.userId = userId; } GroupMembership(int userId, int groupId); }
GroupMembership { public void setUserId(int userId) { this.userId = userId; } GroupMembership(int userId, int groupId); int getUserId(); void setUserId(int userId); int getGroupId(); void setGroupId(int groupId); Date getSharingUntil(); void setSharingUntil(Date sharingUntil); boolean isSharing(); void setSharing(boolean sharing); @Override boolean equals(Object o); @Override int hashCode(); }
GroupMembership { public void setUserId(int userId) { this.userId = userId; } GroupMembership(int userId, int groupId); int getUserId(); void setUserId(int userId); int getGroupId(); void setGroupId(int groupId); Date getSharingUntil(); void setSharingUntil(Date sharingUntil); boolean isSharing(); void setSharing(boolean sharing); @Override boolean equals(Object o); @Override int hashCode();  }