@Test public void testGenerateTestStaffPersonal() { StaffPersonal staffPersonal = SifEntityGenerator.generateTestStaffPersonal(); Assert.assertEquals(SifEntityGenerator.TEST_STAFFPERSONAL_REFID, staffPersonal.getRefId()); Assert.assertEquals(SifEntityGenerator.TEST_EMPLOYEEPERSONAL_REFID, staffPersonal.getEmployeePersonalRefId()); Assert.assertEquals("946379881", staffPersonal.getLocalId()); Assert.assertEquals("C2345681", staffPersonal.getStateProvinceId()); Assert.assertEquals("Principal", staffPersonal.getTitle()); ElectronicIdList electronicIdList = staffPersonal.getElectronicIdList(); Assert.assertEquals(1, electronicIdList.size()); ElectronicId electronicId = electronicIdList.get(0); Assert.assertEquals(ElectronicIdType.BARCODE.getValue(), electronicId.getType()); Assert.assertEquals("206655", electronicId.getValue()); OtherIdList otherIdList = staffPersonal.getOtherIdList(); Assert.assertEquals(1, otherIdList.size()); OtherId otherId = otherIdList.get(0); Assert.assertEquals(OtherIdType.SOCIALSECURITY.getValue(), otherId.getType()); Assert.assertEquals("333333333", otherId.getValue()); Name name = staffPersonal.getName(); Assert.assertEquals(NameType.NAME_OF_RECORD.getValue(), name.getType()); Assert.assertEquals("Mr.", name.getPrefix()); Assert.assertEquals("Woodall", name.getLastName()); Assert.assertEquals("Charles", name.getFirstName()); Assert.assertEquals("William", name.getMiddleName()); Assert.assertEquals("Chuck", name.getPreferredName()); Demographics demographics = staffPersonal.getDemographics(); Assert.assertEquals(Gender.M.getValue(), demographics.getGender()); AddressList addressList = staffPersonal.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()); Assert.assertEquals("6799", street.getStreetNumber()); Assert.assertEquals("33rd", street.getStreetName()); Assert.assertEquals("Ave.", street.getStreetType()); PhoneNumberList phoneNumberList = staffPersonal.getPhoneNumberList(); Assert.assertEquals(1, phoneNumberList.size()); PhoneNumber phoneNumber = phoneNumberList.get(0); Assert.assertEquals(PhoneNumberType.PRIMARY.getValue(), phoneNumber.getType()); Assert.assertEquals("(312) 555-1234", phoneNumber.getNumber()); EmailList emailList = staffPersonal.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 StaffPersonal generateTestStaffPersonal() { StaffPersonal staffPersonal = new StaffPersonal(); staffPersonal.setRefId(TEST_STAFFPERSONAL_REFID); staffPersonal.setEmployeePersonalRefId(TEST_EMPLOYEEPERSONAL_REFID); staffPersonal.setLocalId("946379881"); staffPersonal.setStateProvinceId("C2345681"); staffPersonal.setTitle("Principal"); ElectronicId electronicId = new ElectronicId(ElectronicIdType.BARCODE, "206655"); ElectronicIdList electronicIdList = new ElectronicIdList(electronicId); staffPersonal.setElectronicIdList(electronicIdList); OtherId otherId = new OtherId(OtherIdType.SOCIALSECURITY, "333333333"); OtherIdList otherIdList = new OtherIdList(otherId); staffPersonal.setOtherIdList(otherIdList); Name name = new Name(); name.setType(NameType.NAME_OF_RECORD); name.setPrefix("Mr."); name.setLastName("Woodall"); name.setFirstName("Charles"); name.setMiddleName("William"); name.setPreferredName("Chuck"); staffPersonal.setName(name); Demographics demographics = new Demographics(); demographics.setGender(Gender.M); staffPersonal.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."); street.setStreetNumber("6799"); street.setStreetName("33rd"); street.setStreetType("Ave."); address.setStreet(street); AddressList addressList = new AddressList(address); staffPersonal.setAddressList(addressList); PhoneNumberList phoneNumberList = new PhoneNumberList(); phoneNumberList.addPhoneNumber(PhoneNumberType.PRIMARY, "(312) 555-1234"); staffPersonal.setPhoneNumberList(phoneNumberList); EmailList emailList = new EmailList(); emailList.addEmail(EmailType.PRIMARY, "chuckw@imginc.com"); staffPersonal.setEmailList(emailList); return staffPersonal; }
SifEntityGenerator { public static StaffPersonal generateTestStaffPersonal() { StaffPersonal staffPersonal = new StaffPersonal(); staffPersonal.setRefId(TEST_STAFFPERSONAL_REFID); staffPersonal.setEmployeePersonalRefId(TEST_EMPLOYEEPERSONAL_REFID); staffPersonal.setLocalId("946379881"); staffPersonal.setStateProvinceId("C2345681"); staffPersonal.setTitle("Principal"); ElectronicId electronicId = new ElectronicId(ElectronicIdType.BARCODE, "206655"); ElectronicIdList electronicIdList = new ElectronicIdList(electronicId); staffPersonal.setElectronicIdList(electronicIdList); OtherId otherId = new OtherId(OtherIdType.SOCIALSECURITY, "333333333"); OtherIdList otherIdList = new OtherIdList(otherId); staffPersonal.setOtherIdList(otherIdList); Name name = new Name(); name.setType(NameType.NAME_OF_RECORD); name.setPrefix("Mr."); name.setLastName("Woodall"); name.setFirstName("Charles"); name.setMiddleName("William"); name.setPreferredName("Chuck"); staffPersonal.setName(name); Demographics demographics = new Demographics(); demographics.setGender(Gender.M); staffPersonal.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."); street.setStreetNumber("6799"); street.setStreetName("33rd"); street.setStreetType("Ave."); address.setStreet(street); AddressList addressList = new AddressList(address); staffPersonal.setAddressList(addressList); PhoneNumberList phoneNumberList = new PhoneNumberList(); phoneNumberList.addPhoneNumber(PhoneNumberType.PRIMARY, "(312) 555-1234"); staffPersonal.setPhoneNumberList(phoneNumberList); EmailList emailList = new EmailList(); emailList.addEmail(EmailType.PRIMARY, "chuckw@imginc.com"); staffPersonal.setEmailList(emailList); return staffPersonal; } }
SifEntityGenerator { public static StaffPersonal generateTestStaffPersonal() { StaffPersonal staffPersonal = new StaffPersonal(); staffPersonal.setRefId(TEST_STAFFPERSONAL_REFID); staffPersonal.setEmployeePersonalRefId(TEST_EMPLOYEEPERSONAL_REFID); staffPersonal.setLocalId("946379881"); staffPersonal.setStateProvinceId("C2345681"); staffPersonal.setTitle("Principal"); ElectronicId electronicId = new ElectronicId(ElectronicIdType.BARCODE, "206655"); ElectronicIdList electronicIdList = new ElectronicIdList(electronicId); staffPersonal.setElectronicIdList(electronicIdList); OtherId otherId = new OtherId(OtherIdType.SOCIALSECURITY, "333333333"); OtherIdList otherIdList = new OtherIdList(otherId); staffPersonal.setOtherIdList(otherIdList); Name name = new Name(); name.setType(NameType.NAME_OF_RECORD); name.setPrefix("Mr."); name.setLastName("Woodall"); name.setFirstName("Charles"); name.setMiddleName("William"); name.setPreferredName("Chuck"); staffPersonal.setName(name); Demographics demographics = new Demographics(); demographics.setGender(Gender.M); staffPersonal.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."); street.setStreetNumber("6799"); street.setStreetName("33rd"); street.setStreetType("Ave."); address.setStreet(street); AddressList addressList = new AddressList(address); staffPersonal.setAddressList(addressList); PhoneNumberList phoneNumberList = new PhoneNumberList(); phoneNumberList.addPhoneNumber(PhoneNumberType.PRIMARY, "(312) 555-1234"); staffPersonal.setPhoneNumberList(phoneNumberList); EmailList emailList = new EmailList(); emailList.addEmail(EmailType.PRIMARY, "chuckw@imginc.com"); staffPersonal.setEmailList(emailList); return staffPersonal; }  }
SifEntityGenerator { public static StaffPersonal generateTestStaffPersonal() { StaffPersonal staffPersonal = new StaffPersonal(); staffPersonal.setRefId(TEST_STAFFPERSONAL_REFID); staffPersonal.setEmployeePersonalRefId(TEST_EMPLOYEEPERSONAL_REFID); staffPersonal.setLocalId("946379881"); staffPersonal.setStateProvinceId("C2345681"); staffPersonal.setTitle("Principal"); ElectronicId electronicId = new ElectronicId(ElectronicIdType.BARCODE, "206655"); ElectronicIdList electronicIdList = new ElectronicIdList(electronicId); staffPersonal.setElectronicIdList(electronicIdList); OtherId otherId = new OtherId(OtherIdType.SOCIALSECURITY, "333333333"); OtherIdList otherIdList = new OtherIdList(otherId); staffPersonal.setOtherIdList(otherIdList); Name name = new Name(); name.setType(NameType.NAME_OF_RECORD); name.setPrefix("Mr."); name.setLastName("Woodall"); name.setFirstName("Charles"); name.setMiddleName("William"); name.setPreferredName("Chuck"); staffPersonal.setName(name); Demographics demographics = new Demographics(); demographics.setGender(Gender.M); staffPersonal.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."); street.setStreetNumber("6799"); street.setStreetName("33rd"); street.setStreetType("Ave."); address.setStreet(street); AddressList addressList = new AddressList(address); staffPersonal.setAddressList(addressList); PhoneNumberList phoneNumberList = new PhoneNumberList(); phoneNumberList.addPhoneNumber(PhoneNumberType.PRIMARY, "(312) 555-1234"); staffPersonal.setPhoneNumberList(phoneNumberList); EmailList emailList = new EmailList(); emailList.addEmail(EmailType.PRIMARY, "chuckw@imginc.com"); staffPersonal.setEmailList(emailList); return staffPersonal; }  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 StaffPersonal generateTestStaffPersonal() { StaffPersonal staffPersonal = new StaffPersonal(); staffPersonal.setRefId(TEST_STAFFPERSONAL_REFID); staffPersonal.setEmployeePersonalRefId(TEST_EMPLOYEEPERSONAL_REFID); staffPersonal.setLocalId("946379881"); staffPersonal.setStateProvinceId("C2345681"); staffPersonal.setTitle("Principal"); ElectronicId electronicId = new ElectronicId(ElectronicIdType.BARCODE, "206655"); ElectronicIdList electronicIdList = new ElectronicIdList(electronicId); staffPersonal.setElectronicIdList(electronicIdList); OtherId otherId = new OtherId(OtherIdType.SOCIALSECURITY, "333333333"); OtherIdList otherIdList = new OtherIdList(otherId); staffPersonal.setOtherIdList(otherIdList); Name name = new Name(); name.setType(NameType.NAME_OF_RECORD); name.setPrefix("Mr."); name.setLastName("Woodall"); name.setFirstName("Charles"); name.setMiddleName("William"); name.setPreferredName("Chuck"); staffPersonal.setName(name); Demographics demographics = new Demographics(); demographics.setGender(Gender.M); staffPersonal.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."); street.setStreetNumber("6799"); street.setStreetName("33rd"); street.setStreetType("Ave."); address.setStreet(street); AddressList addressList = new AddressList(address); staffPersonal.setAddressList(addressList); PhoneNumberList phoneNumberList = new PhoneNumberList(); phoneNumberList.addPhoneNumber(PhoneNumberType.PRIMARY, "(312) 555-1234"); staffPersonal.setPhoneNumberList(phoneNumberList); EmailList emailList = new EmailList(); emailList.addEmail(EmailType.PRIMARY, "chuckw@imginc.com"); staffPersonal.setEmailList(emailList); return staffPersonal; }  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; }