@Test public void setName() throws Exception { userGroup2.setName(groupNames[2]); assertEquals(groupNames[2], userGroup2.getName()); }
public void setName(String name) { this.name = name; }
UserGroup { public void setName(String name) { this.name = name; } }
UserGroup { public void setName(String name) { this.name = name; } UserGroup(int groupId, String name); }
UserGroup { public void setName(String name) { this.name = name; } UserGroup(int groupId, String name); int getGroupId(); void setGroupId(int groupId); String getName(); void setName(String name); boolean isSharingLocation(); void setSharingLocation(boolean sharingLocation); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode(); }
UserGroup { public void setName(String name) { this.name = name; } UserGroup(int groupId, String name); int getGroupId(); void setGroupId(int groupId); String getName(); void setName(String name); boolean isSharingLocation(); void setSharingLocation(boolean sharingLocation); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode();  }