@Test public void testGetName() { user.setFirstName("Jane"); user.setLastName("Doe"); assertEquals("Jane Doe", user.getName()); }
public String getName() { return firstName + " " + lastName; }
User implements Serializable { public String getName() { return firstName + " " + lastName; } }
User implements Serializable { public String getName() { return firstName + " " + lastName; } User(String userId, String firstName, String lastName); }
User implements Serializable { public String getName() { return firstName + " " + lastName; } User(String userId, String firstName, String lastName); String getUserId(); void setUserId(String userId); String getFirstName(); void setFirstName(String firstName); String getLastName(); void setLastName(String lastName); String getName(); String toString(); }
User implements Serializable { public String getName() { return firstName + " " + lastName; } User(String userId, String firstName, String lastName); String getUserId(); void setUserId(String userId); String getFirstName(); void setFirstName(String firstName); String getLastName(); void setLastName(String lastName); String getName(); String toString();  }