protected Object getControlObject() { Employee employee = new Employee(); employee.setID(CONTROL_EMPLOYEE_ID); EmailAddress emailAddress = new EmailAddress(); emailAddress.setUserID(CONTROL_EMAIL_ADDRESS_USER_ID); emailAddress.setDomain(CONTROL_EMAIL_ADDRESS_DOMAIN); employee.setEmailAddress(emailAddress); MailingAddress mailingAddress = new MailingAddress(); mailingAddress.setStreet(CONTROL_MAILING_ADDRESS_STREET); mailingAddress.setCity(CONTROL_MAILING_ADDRESS_CITY); mailingAddress.setProvince(CONTROL_MAILING_ADDRESS_PROVINCE); mailingAddress.setPostalCode(CONTROL_MAILING_ADDRESS_POSTAL_CODE); employee.setMailingAddress(mailingAddress); return employee; }
protected Object getControlObject() { Employee employee = new Employee(); employee.setID(CONTROL_EMPLOYEE_ID); EmailAddress emailAddress = new EmailAddress(); emailAddress.setDomain(CONTROL_DOMAIN); emailAddress.setUserID(CONTROL_USER_ID); employee.setEmailAddress(emailAddress); MailingAddress mailingAddress = new MailingAddress(); // mailingAddress.setStreet(CONTROL_MAILING_ADDRESS_STREET); // the "city" variable on mailingAddress is not being set for this test // mailingAddress.setProvince(CONTROL_MAILING_ADDRESS_PROVINCE); // mailingAddress.setPostalCode(CONTROL_MAILING_ADDRESS_POSTAL_CODE); employee.setMailingAddress(mailingAddress); return employee; }