@Test public void testGenerateTestEmployeePersonal() { EmployeePersonal employeePersonal = SifEntityGenerator.generateTestEmployeePersonal(); Assert.assertEquals(SifEntityGenerator.TEST_EMPLOYEEPERSONAL_REFID, employeePersonal.getRefId()); HrOtherIdList hrOtherIdList = employeePersonal.getOtherIdList(); Assert.assertEquals(2, hrOtherIdList.size()); OtherId otherId1 = hrOtherIdList.get(0); Assert.assertEquals(OtherIdType.SOCIALSECURITY.getValue(), otherId1.getType()); Assert.assertEquals("333333333", otherId1.getValue()); OtherId otherId2 = hrOtherIdList.get(1); Assert.assertEquals(OtherIdType.OTHER.getValue(), otherId2.getType()); Assert.assertEquals("3333", otherId2.getValue()); Name name = employeePersonal.getName(); Assert.assertEquals(NameType.NAME_OF_RECORD.getValue(), name.getType()); Assert.assertEquals("Woodall", name.getLastName()); Assert.assertEquals("Charles", name.getFirstName()); Demographics demographics = employeePersonal.getDemographics(); Assert.assertEquals(Gender.M.getValue(), demographics.getGender()); AddressList addressList = employeePersonal.getAddressList(); Assert.assertEquals(1, addressList.size()); Address address = addressList.get(0); Assert.assertEquals(AddressType.MAILING.getValue(), address.getType()); Assert.assertEquals("Chicago", address.getCity()); Assert.assertEquals(StatePrCode.IL.getValue(), address.getStateProvince()); Assert.assertEquals(CountryCode.US.getValue(), address.getCountry()); Assert.assertEquals("60660", address.getPostalCode()); Street street = address.getStreet(); Assert.assertEquals("6799 33rd Ave.", street.getLine1()); PhoneNumberList phoneNumberList = employeePersonal.getPhoneNumberList(); Assert.assertEquals(1, phoneNumberList.size()); PhoneNumber phoneNumber = phoneNumberList.get(0); Assert.assertEquals(PhoneNumberType.PRIMARY.getValue(), phoneNumber.getType()); Assert.assertEquals("(312) 555-9876", phoneNumber.getNumber()); EmailList emailList = employeePersonal.getEmailList(); Assert.assertEquals(1, emailList.size()); Email email = emailList.get(0); Assert.assertEquals(EmailType.PRIMARY.getValue(), email.getType()); Assert.assertEquals("chuckw@imginc.com", email.getValue()); }
public static EmployeePersonal generateTestEmployeePersonal() { EmployeePersonal employeePersonal = new EmployeePersonal(); employeePersonal.setRefId(TEST_EMPLOYEEPERSONAL_REFID); employeePersonal.setStateProvinceId("C2345681"); OtherId otherId1 = new OtherId(OtherIdType.SOCIALSECURITY, "333333333"); OtherId otherId2 = new OtherId(OtherIdType.OTHER, "3333"); HrOtherIdList hrOtherIdList = new HrOtherIdList(); hrOtherIdList.add(otherId1); hrOtherIdList.add(otherId2); employeePersonal.setOtherIdList(hrOtherIdList); Name name = new Name(); name.setType(NameType.NAME_OF_RECORD); name.setLastName("Woodall"); name.setFirstName("Charles"); employeePersonal.setName(name); Demographics demographics = new Demographics(); demographics.setGender(Gender.M); employeePersonal.setDemographics(demographics); Address address = new Address(); address.setType(AddressType.MAILING); address.setCity("Chicago"); address.setStateProvince(StatePrCode.IL); address.setCountry(CountryCode.US); address.setPostalCode("60660"); Street street = new Street(); street.setLine1("6799 33rd Ave."); address.setStreet(street); AddressList addressList = new AddressList(address); employeePersonal.setAddressList(addressList); PhoneNumberList phoneNumberList = new PhoneNumberList(); phoneNumberList.addPhoneNumber(PhoneNumberType.PRIMARY, "(312) 555-9876"); employeePersonal.setPhoneNumberList(phoneNumberList); EmailList emailList = new EmailList(); emailList.addEmail(EmailType.PRIMARY, "chuckw@imginc.com"); employeePersonal.setEmailList(emailList); return employeePersonal; }
SifEntityGenerator { public static EmployeePersonal generateTestEmployeePersonal() { EmployeePersonal employeePersonal = new EmployeePersonal(); employeePersonal.setRefId(TEST_EMPLOYEEPERSONAL_REFID); employeePersonal.setStateProvinceId("C2345681"); OtherId otherId1 = new OtherId(OtherIdType.SOCIALSECURITY, "333333333"); OtherId otherId2 = new OtherId(OtherIdType.OTHER, "3333"); HrOtherIdList hrOtherIdList = new HrOtherIdList(); hrOtherIdList.add(otherId1); hrOtherIdList.add(otherId2); employeePersonal.setOtherIdList(hrOtherIdList); Name name = new Name(); name.setType(NameType.NAME_OF_RECORD); name.setLastName("Woodall"); name.setFirstName("Charles"); employeePersonal.setName(name); Demographics demographics = new Demographics(); demographics.setGender(Gender.M); employeePersonal.setDemographics(demographics); Address address = new Address(); address.setType(AddressType.MAILING); address.setCity("Chicago"); address.setStateProvince(StatePrCode.IL); address.setCountry(CountryCode.US); address.setPostalCode("60660"); Street street = new Street(); street.setLine1("6799 33rd Ave."); address.setStreet(street); AddressList addressList = new AddressList(address); employeePersonal.setAddressList(addressList); PhoneNumberList phoneNumberList = new PhoneNumberList(); phoneNumberList.addPhoneNumber(PhoneNumberType.PRIMARY, "(312) 555-9876"); employeePersonal.setPhoneNumberList(phoneNumberList); EmailList emailList = new EmailList(); emailList.addEmail(EmailType.PRIMARY, "chuckw@imginc.com"); employeePersonal.setEmailList(emailList); return employeePersonal; } }
SifEntityGenerator { public static EmployeePersonal generateTestEmployeePersonal() { EmployeePersonal employeePersonal = new EmployeePersonal(); employeePersonal.setRefId(TEST_EMPLOYEEPERSONAL_REFID); employeePersonal.setStateProvinceId("C2345681"); OtherId otherId1 = new OtherId(OtherIdType.SOCIALSECURITY, "333333333"); OtherId otherId2 = new OtherId(OtherIdType.OTHER, "3333"); HrOtherIdList hrOtherIdList = new HrOtherIdList(); hrOtherIdList.add(otherId1); hrOtherIdList.add(otherId2); employeePersonal.setOtherIdList(hrOtherIdList); Name name = new Name(); name.setType(NameType.NAME_OF_RECORD); name.setLastName("Woodall"); name.setFirstName("Charles"); employeePersonal.setName(name); Demographics demographics = new Demographics(); demographics.setGender(Gender.M); employeePersonal.setDemographics(demographics); Address address = new Address(); address.setType(AddressType.MAILING); address.setCity("Chicago"); address.setStateProvince(StatePrCode.IL); address.setCountry(CountryCode.US); address.setPostalCode("60660"); Street street = new Street(); street.setLine1("6799 33rd Ave."); address.setStreet(street); AddressList addressList = new AddressList(address); employeePersonal.setAddressList(addressList); PhoneNumberList phoneNumberList = new PhoneNumberList(); phoneNumberList.addPhoneNumber(PhoneNumberType.PRIMARY, "(312) 555-9876"); employeePersonal.setPhoneNumberList(phoneNumberList); EmailList emailList = new EmailList(); emailList.addEmail(EmailType.PRIMARY, "chuckw@imginc.com"); employeePersonal.setEmailList(emailList); return employeePersonal; }  }
SifEntityGenerator { public static EmployeePersonal generateTestEmployeePersonal() { EmployeePersonal employeePersonal = new EmployeePersonal(); employeePersonal.setRefId(TEST_EMPLOYEEPERSONAL_REFID); employeePersonal.setStateProvinceId("C2345681"); OtherId otherId1 = new OtherId(OtherIdType.SOCIALSECURITY, "333333333"); OtherId otherId2 = new OtherId(OtherIdType.OTHER, "3333"); HrOtherIdList hrOtherIdList = new HrOtherIdList(); hrOtherIdList.add(otherId1); hrOtherIdList.add(otherId2); employeePersonal.setOtherIdList(hrOtherIdList); Name name = new Name(); name.setType(NameType.NAME_OF_RECORD); name.setLastName("Woodall"); name.setFirstName("Charles"); employeePersonal.setName(name); Demographics demographics = new Demographics(); demographics.setGender(Gender.M); employeePersonal.setDemographics(demographics); Address address = new Address(); address.setType(AddressType.MAILING); address.setCity("Chicago"); address.setStateProvince(StatePrCode.IL); address.setCountry(CountryCode.US); address.setPostalCode("60660"); Street street = new Street(); street.setLine1("6799 33rd Ave."); address.setStreet(street); AddressList addressList = new AddressList(address); employeePersonal.setAddressList(addressList); PhoneNumberList phoneNumberList = new PhoneNumberList(); phoneNumberList.addPhoneNumber(PhoneNumberType.PRIMARY, "(312) 555-9876"); employeePersonal.setPhoneNumberList(phoneNumberList); EmailList emailList = new EmailList(); emailList.addEmail(EmailType.PRIMARY, "chuckw@imginc.com"); employeePersonal.setEmailList(emailList); return employeePersonal; }  static SchoolInfo generateTestSchoolInfo(); static LEAInfo generateTestLEAInfo(); static SEAInfo generateTestSEAInfo(); static StudentSchoolEnrollment generateTestStudentSchoolEnrollment(); static StudentLEARelationship generateTestStudentLeaRelationship(); static StudentPersonal generateTestStudentPersonal(); static StaffPersonal generateTestStaffPersonal(); static EmployeePersonal generateTestEmployeePersonal(); static StaffAssignment generateTestStaffAssignment(); static EmploymentRecord generateTestEmploymentRecord(); static EmployeeAssignment generateTestEmployeeAssignment(); }
SifEntityGenerator { public static EmployeePersonal generateTestEmployeePersonal() { EmployeePersonal employeePersonal = new EmployeePersonal(); employeePersonal.setRefId(TEST_EMPLOYEEPERSONAL_REFID); employeePersonal.setStateProvinceId("C2345681"); OtherId otherId1 = new OtherId(OtherIdType.SOCIALSECURITY, "333333333"); OtherId otherId2 = new OtherId(OtherIdType.OTHER, "3333"); HrOtherIdList hrOtherIdList = new HrOtherIdList(); hrOtherIdList.add(otherId1); hrOtherIdList.add(otherId2); employeePersonal.setOtherIdList(hrOtherIdList); Name name = new Name(); name.setType(NameType.NAME_OF_RECORD); name.setLastName("Woodall"); name.setFirstName("Charles"); employeePersonal.setName(name); Demographics demographics = new Demographics(); demographics.setGender(Gender.M); employeePersonal.setDemographics(demographics); Address address = new Address(); address.setType(AddressType.MAILING); address.setCity("Chicago"); address.setStateProvince(StatePrCode.IL); address.setCountry(CountryCode.US); address.setPostalCode("60660"); Street street = new Street(); street.setLine1("6799 33rd Ave."); address.setStreet(street); AddressList addressList = new AddressList(address); employeePersonal.setAddressList(addressList); PhoneNumberList phoneNumberList = new PhoneNumberList(); phoneNumberList.addPhoneNumber(PhoneNumberType.PRIMARY, "(312) 555-9876"); employeePersonal.setPhoneNumberList(phoneNumberList); EmailList emailList = new EmailList(); emailList.addEmail(EmailType.PRIMARY, "chuckw@imginc.com"); employeePersonal.setEmailList(emailList); return employeePersonal; }  static SchoolInfo generateTestSchoolInfo(); static LEAInfo generateTestLEAInfo(); static SEAInfo generateTestSEAInfo(); static StudentSchoolEnrollment generateTestStudentSchoolEnrollment(); static StudentLEARelationship generateTestStudentLeaRelationship(); static StudentPersonal generateTestStudentPersonal(); static StaffPersonal generateTestStaffPersonal(); static EmployeePersonal generateTestEmployeePersonal(); static StaffAssignment generateTestStaffAssignment(); static EmploymentRecord generateTestEmploymentRecord(); static EmployeeAssignment generateTestEmployeeAssignment(); static final String TEST_SCHOOLINFO_REFID; static final String TEST_LEAINFO_REFID; static final String TEST_SEAINFO_REFID; static final String TEST_STUDENTPERSONAL_REFID; static final String TEST_STUDENTSCHOOLENROLLMENT_REFID; static final String TEST_STUDENTLEARELATIONSHIP_REFID; static final String TEST_STAFFPERSONAL_REFID; static final String TEST_EMPLOYEEPERSONAL_REFID; static final String TEST_STAFFASSIGNMENT_REFID; static final String TEST_EMPLOYMENTRECORD_REFID; static final String TEST_EMPLOYEEASSIGNMENT_REFID; }