@Test public void testToString() { dc = new DCPersonName(null, null); assertThat("testToString 0", dc.toString(), equalTo("")); dc = new DCPersonName("name", null); assertThat("testToString 1", dc.toString(), equalTo("name")); dc = new DCPersonName(null, "firstname"); assertThat("testToString 2", dc.toString(), equalTo("")); dc = new DCPersonName("name","firstname"); assertThat("testToString 3", dc.toString(), equalTo("name, firstname")); }
public String toString() { StringBuffer out = new StringBuffer(); if (lastName != null) { out.append(lastName); if ((firstNames != null) && !firstNames.equals("")) { out.append(", ").append(firstNames); } } return (out.toString()); }
DCPersonName { public String toString() { StringBuffer out = new StringBuffer(); if (lastName != null) { out.append(lastName); if ((firstNames != null) && !firstNames.equals("")) { out.append(", ").append(firstNames); } } return (out.toString()); } }
DCPersonName { public String toString() { StringBuffer out = new StringBuffer(); if (lastName != null) { out.append(lastName); if ((firstNames != null) && !firstNames.equals("")) { out.append(", ").append(firstNames); } } return (out.toString()); } DCPersonName();  DCPersonName(String rawValue);  DCPersonName(String lastNameIn, String firstNamesIn); }
DCPersonName { public String toString() { StringBuffer out = new StringBuffer(); if (lastName != null) { out.append(lastName); if ((firstNames != null) && !firstNames.equals("")) { out.append(", ").append(firstNames); } } return (out.toString()); } DCPersonName();  DCPersonName(String rawValue);  DCPersonName(String lastNameIn, String firstNamesIn); String toString(); String getFirstNames(); String getLastName(); }
DCPersonName { public String toString() { StringBuffer out = new StringBuffer(); if (lastName != null) { out.append(lastName); if ((firstNames != null) && !firstNames.equals("")) { out.append(", ").append(firstNames); } } return (out.toString()); } DCPersonName();  DCPersonName(String rawValue);  DCPersonName(String lastNameIn, String firstNamesIn); String toString(); String getFirstNames(); String getLastName();  }