/** Returns new Customer object with passed lat and long values */ public static Customer fromFirstLastPhone(String firstName, String lastName, String phone) /** * Returns new Customer object with blank name and blank phone * Blank name means ivar "name" should be FullName object with blank strings * Blank phone means blank (empty) string */ public static Customer newInstance() /** Returns nice display string for this Customer */ public String toString()
/** * Returns new FullName object setting two components from params * (middle name will be empty string) */ public static FullName fromFirstLast(String f, String l) /** Returns new FullName with all name components as empty strings */ public static FullName newBlank() /** Returns "nice string" of this FullName */ public String toString()
+---src←classpath
| +---model | | +---business | | \---Customer.java←Unit | | \---FullName.java | +---test | | +---cases | | +---business | | \---CustomerTest.java←Unit
Test | | \---customer-bug-summary.txt←Bug summary
starter file
-- test_newInstance -- () -- test_fromFirstLastPhone -- Asha Gupta (1112223333)