@Test public void testGetLastName() { dc = new DCPersonName(null, null); assertThat("testGetLastName 0", dc.getLastName(), equalTo("")); dc = new DCPersonName("name", null); assertThat("testGetLastName 1", dc.getLastName(), equalTo("name")); dc = new DCPersonName(null, "firstname"); assertThat("testGetLastName 2", dc.getLastName(), equalTo("")); dc = new DCPersonName("name","firstname"); assertThat("testGetLastName 3", dc.getLastName(), equalTo("name")); }
public String getLastName() { return ((lastName == null) ? "" : lastName); }
DCPersonName { public String getLastName() { return ((lastName == null) ? "" : lastName); } }
DCPersonName { public String getLastName() { return ((lastName == null) ? "" : lastName); } DCPersonName();  DCPersonName(String rawValue);  DCPersonName(String lastNameIn, String firstNamesIn); }
DCPersonName { public String getLastName() { return ((lastName == null) ? "" : lastName); } DCPersonName();  DCPersonName(String rawValue);  DCPersonName(String lastNameIn, String firstNamesIn); String toString(); String getFirstNames(); String getLastName(); }
DCPersonName { public String getLastName() { return ((lastName == null) ? "" : lastName); } DCPersonName();  DCPersonName(String rawValue);  DCPersonName(String lastNameIn, String firstNamesIn); String toString(); String getFirstNames(); String getLastName();  }