コード例 #1
0
 public static ICustomer abelCustomer() {
   ICustomer customer = new Customer();
   customer.setCustomerId(1234);
   customer.setFirstname("Dieter");
   customer.setLastname("Abel");
   customer.setGender(Gender.MALE);
   customer.getHome().setZip((long) 97222);
   customer.getHome().setCity("Rimpar");
   customer.getContact().setPhone("09365/889933");
   return customer;
 }
コード例 #2
0
  public static ICustomer createCustomerInitializedWithNulls() {
    ICustomer customer = new Customer();
    customer.setBirthdate(null);
    customer.setContact(null);
    customer.setCustomerId((int) 0);
    customer.setFirstname(null);
    customer.setHome(null);
    customer.setLastname(null);
    customer.setGender(Gender.UNKNOWN);

    return customer;
  }