@Test public void testGenerateTestSchoolInfo() { SchoolInfo schoolInfo = SifEntityGenerator.generateTestSchoolInfo(); Assert.assertEquals(SifEntityGenerator.TEST_SCHOOLINFO_REFID, schoolInfo.getRefId()); Assert.assertEquals("Daybreak West High", schoolInfo.getStateProvinceId()); Assert.assertEquals("421575003045", schoolInfo.getNCESId()); Assert.assertEquals("Daybreak West High", schoolInfo.getSchoolName()); Assert.assertEquals(SifEntityGenerator.TEST_LEAINFO_REFID, schoolInfo.getLEAInfoRefId()); Assert.assertEquals("http: Assert.assertEquals(OperationalStatus.SCHOOL_CLOSED.getValue(), schoolInfo.getOperationalStatus()); Assert.assertEquals(SchoolLevelType._0031_2402_HIGH_SCHOOL.getValue(), schoolInfo.getSchoolType()); SchoolFocusList schoolFocusList = schoolInfo.getSchoolFocusList(); Assert.assertEquals(1, schoolFocusList.size()); SchoolFocus schoolFocus = schoolFocusList.get(0); Assert.assertEquals(SchoolFocusType.REGULAR.getValue(), schoolFocus.getValue()); GradeLevels gradeLevels = schoolInfo.getGradeLevels(); Assert.assertEquals(4, gradeLevels.size()); GradeLevel gradeLevel1 = gradeLevels.get(0); Assert.assertEquals(GradeLevelCode._09.getValue(), gradeLevel1.getCode()); GradeLevel gradeLevel2 = gradeLevels.get(1); Assert.assertEquals(GradeLevelCode._10.getValue(), gradeLevel2.getCode()); GradeLevel gradeLevel3 = gradeLevels.get(2); Assert.assertEquals(GradeLevelCode._11.getValue(), gradeLevel3.getCode()); GradeLevel gradeLevel4 = gradeLevels.get(3); Assert.assertEquals(GradeLevelCode._12.getValue(), gradeLevel4.getCode()); AddressList addressList = schoolInfo.getAddressList(); Assert.assertEquals(1, addressList.size()); Address address = addressList.get(0); Assert.assertEquals("Salt Lake City", address.getCity()); Assert.assertEquals(StatePrCode.IL.getValue(), address.getStateProvince()); Assert.assertEquals(CountryCode.US.getValue(), address.getCountry()); Assert.assertEquals("84102", address.getPostalCode()); Assert.assertEquals(AddressType.MAILING.getValue(), address.getType()); Street street = address.getStreet(); Assert.assertEquals("1 IBM Plaza", street.getLine1()); Assert.assertEquals("2000", street.getApartmentNumber()); Assert.assertEquals("Suite 2000", street.getLine2()); Assert.assertEquals("Salt Lake City, IL 84102", street.getLine3()); Assert.assertEquals("IBM way", street.getStreetName()); Assert.assertEquals("1", street.getStreetNumber()); Assert.assertEquals("Plaza", street.getStreetType()); Assert.assertEquals("Suite", street.getApartmentType()); PhoneNumberList phoneNumberList = schoolInfo.getPhoneNumberList(); Assert.assertEquals(2, phoneNumberList.size()); PhoneNumber phoneNumber1 = phoneNumberList.get(0); Assert.assertEquals(PhoneNumberType.PRIMARY.getValue(), phoneNumber1.getType()); Assert.assertEquals("(312) 555-1234", phoneNumber1.getNumber()); PhoneNumber phoneNumber2 = phoneNumberList.get(1); Assert.assertEquals(PhoneNumberType.FAX.getValue(), phoneNumber2.getType()); Assert.assertEquals("(312) 555-2364", phoneNumber2.getNumber()); }
public static SchoolInfo generateTestSchoolInfo() { SchoolInfo info = new SchoolInfo(); info.setRefId(TEST_SCHOOLINFO_REFID); info.setStateProvinceId("Daybreak West High"); info.setNCESId("421575003045"); info.setSchoolName("Daybreak West High"); info.setLEAInfoRefId(TEST_LEAINFO_REFID); SchoolFocusList schoolFocusList = new SchoolFocusList(); schoolFocusList.add(new SchoolFocus(SchoolFocusType.REGULAR)); info.setSchoolFocusList(schoolFocusList); info.setSchoolURL("http: info.setOperationalStatus(OperationalStatus.SCHOOL_CLOSED); info.setSchoolType(SchoolLevelType._0031_2402_HIGH_SCHOOL); GradeLevels gradeLevels = new GradeLevels(); gradeLevels.addGradeLevel(GradeLevelCode._09); gradeLevels.addGradeLevel(GradeLevelCode._10); gradeLevels.addGradeLevel(GradeLevelCode._11); gradeLevels.addGradeLevel(GradeLevelCode._12); info.setGradeLevels(gradeLevels); Address address = new Address(); address.setCity("Salt Lake City"); address.setStateProvince(StatePrCode.IL); address.setCountry(CountryCode.US); address.setPostalCode("84102"); Street street = new Street(); street.setLine1("1 IBM Plaza"); street.setApartmentNumber("2000"); street.setLine2("Suite 2000"); street.setLine3("Salt Lake City, IL 84102"); street.setStreetName("IBM way"); street.setStreetNumber("1"); street.setStreetType("Plaza"); street.setApartmentType("Suite"); address.setStreet(street); address.setType(AddressType.MAILING); AddressList addressList = new AddressList(); addressList.add(address); info.setAddressList(addressList); PhoneNumberList phoneNumberList = new PhoneNumberList(); phoneNumberList.addPhoneNumber(PhoneNumberType.PRIMARY, "(312) 555-1234"); phoneNumberList.addPhoneNumber(PhoneNumberType.FAX, "(312) 555-2364"); info.setPhoneNumberList(phoneNumberList); return info; }
SifEntityGenerator { public static SchoolInfo generateTestSchoolInfo() { SchoolInfo info = new SchoolInfo(); info.setRefId(TEST_SCHOOLINFO_REFID); info.setStateProvinceId("Daybreak West High"); info.setNCESId("421575003045"); info.setSchoolName("Daybreak West High"); info.setLEAInfoRefId(TEST_LEAINFO_REFID); SchoolFocusList schoolFocusList = new SchoolFocusList(); schoolFocusList.add(new SchoolFocus(SchoolFocusType.REGULAR)); info.setSchoolFocusList(schoolFocusList); info.setSchoolURL("http: info.setOperationalStatus(OperationalStatus.SCHOOL_CLOSED); info.setSchoolType(SchoolLevelType._0031_2402_HIGH_SCHOOL); GradeLevels gradeLevels = new GradeLevels(); gradeLevels.addGradeLevel(GradeLevelCode._09); gradeLevels.addGradeLevel(GradeLevelCode._10); gradeLevels.addGradeLevel(GradeLevelCode._11); gradeLevels.addGradeLevel(GradeLevelCode._12); info.setGradeLevels(gradeLevels); Address address = new Address(); address.setCity("Salt Lake City"); address.setStateProvince(StatePrCode.IL); address.setCountry(CountryCode.US); address.setPostalCode("84102"); Street street = new Street(); street.setLine1("1 IBM Plaza"); street.setApartmentNumber("2000"); street.setLine2("Suite 2000"); street.setLine3("Salt Lake City, IL 84102"); street.setStreetName("IBM way"); street.setStreetNumber("1"); street.setStreetType("Plaza"); street.setApartmentType("Suite"); address.setStreet(street); address.setType(AddressType.MAILING); AddressList addressList = new AddressList(); addressList.add(address); info.setAddressList(addressList); PhoneNumberList phoneNumberList = new PhoneNumberList(); phoneNumberList.addPhoneNumber(PhoneNumberType.PRIMARY, "(312) 555-1234"); phoneNumberList.addPhoneNumber(PhoneNumberType.FAX, "(312) 555-2364"); info.setPhoneNumberList(phoneNumberList); return info; } }
SifEntityGenerator { public static SchoolInfo generateTestSchoolInfo() { SchoolInfo info = new SchoolInfo(); info.setRefId(TEST_SCHOOLINFO_REFID); info.setStateProvinceId("Daybreak West High"); info.setNCESId("421575003045"); info.setSchoolName("Daybreak West High"); info.setLEAInfoRefId(TEST_LEAINFO_REFID); SchoolFocusList schoolFocusList = new SchoolFocusList(); schoolFocusList.add(new SchoolFocus(SchoolFocusType.REGULAR)); info.setSchoolFocusList(schoolFocusList); info.setSchoolURL("http: info.setOperationalStatus(OperationalStatus.SCHOOL_CLOSED); info.setSchoolType(SchoolLevelType._0031_2402_HIGH_SCHOOL); GradeLevels gradeLevels = new GradeLevels(); gradeLevels.addGradeLevel(GradeLevelCode._09); gradeLevels.addGradeLevel(GradeLevelCode._10); gradeLevels.addGradeLevel(GradeLevelCode._11); gradeLevels.addGradeLevel(GradeLevelCode._12); info.setGradeLevels(gradeLevels); Address address = new Address(); address.setCity("Salt Lake City"); address.setStateProvince(StatePrCode.IL); address.setCountry(CountryCode.US); address.setPostalCode("84102"); Street street = new Street(); street.setLine1("1 IBM Plaza"); street.setApartmentNumber("2000"); street.setLine2("Suite 2000"); street.setLine3("Salt Lake City, IL 84102"); street.setStreetName("IBM way"); street.setStreetNumber("1"); street.setStreetType("Plaza"); street.setApartmentType("Suite"); address.setStreet(street); address.setType(AddressType.MAILING); AddressList addressList = new AddressList(); addressList.add(address); info.setAddressList(addressList); PhoneNumberList phoneNumberList = new PhoneNumberList(); phoneNumberList.addPhoneNumber(PhoneNumberType.PRIMARY, "(312) 555-1234"); phoneNumberList.addPhoneNumber(PhoneNumberType.FAX, "(312) 555-2364"); info.setPhoneNumberList(phoneNumberList); return info; }  }
SifEntityGenerator { public static SchoolInfo generateTestSchoolInfo() { SchoolInfo info = new SchoolInfo(); info.setRefId(TEST_SCHOOLINFO_REFID); info.setStateProvinceId("Daybreak West High"); info.setNCESId("421575003045"); info.setSchoolName("Daybreak West High"); info.setLEAInfoRefId(TEST_LEAINFO_REFID); SchoolFocusList schoolFocusList = new SchoolFocusList(); schoolFocusList.add(new SchoolFocus(SchoolFocusType.REGULAR)); info.setSchoolFocusList(schoolFocusList); info.setSchoolURL("http: info.setOperationalStatus(OperationalStatus.SCHOOL_CLOSED); info.setSchoolType(SchoolLevelType._0031_2402_HIGH_SCHOOL); GradeLevels gradeLevels = new GradeLevels(); gradeLevels.addGradeLevel(GradeLevelCode._09); gradeLevels.addGradeLevel(GradeLevelCode._10); gradeLevels.addGradeLevel(GradeLevelCode._11); gradeLevels.addGradeLevel(GradeLevelCode._12); info.setGradeLevels(gradeLevels); Address address = new Address(); address.setCity("Salt Lake City"); address.setStateProvince(StatePrCode.IL); address.setCountry(CountryCode.US); address.setPostalCode("84102"); Street street = new Street(); street.setLine1("1 IBM Plaza"); street.setApartmentNumber("2000"); street.setLine2("Suite 2000"); street.setLine3("Salt Lake City, IL 84102"); street.setStreetName("IBM way"); street.setStreetNumber("1"); street.setStreetType("Plaza"); street.setApartmentType("Suite"); address.setStreet(street); address.setType(AddressType.MAILING); AddressList addressList = new AddressList(); addressList.add(address); info.setAddressList(addressList); PhoneNumberList phoneNumberList = new PhoneNumberList(); phoneNumberList.addPhoneNumber(PhoneNumberType.PRIMARY, "(312) 555-1234"); phoneNumberList.addPhoneNumber(PhoneNumberType.FAX, "(312) 555-2364"); info.setPhoneNumberList(phoneNumberList); return info; }  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 SchoolInfo generateTestSchoolInfo() { SchoolInfo info = new SchoolInfo(); info.setRefId(TEST_SCHOOLINFO_REFID); info.setStateProvinceId("Daybreak West High"); info.setNCESId("421575003045"); info.setSchoolName("Daybreak West High"); info.setLEAInfoRefId(TEST_LEAINFO_REFID); SchoolFocusList schoolFocusList = new SchoolFocusList(); schoolFocusList.add(new SchoolFocus(SchoolFocusType.REGULAR)); info.setSchoolFocusList(schoolFocusList); info.setSchoolURL("http: info.setOperationalStatus(OperationalStatus.SCHOOL_CLOSED); info.setSchoolType(SchoolLevelType._0031_2402_HIGH_SCHOOL); GradeLevels gradeLevels = new GradeLevels(); gradeLevels.addGradeLevel(GradeLevelCode._09); gradeLevels.addGradeLevel(GradeLevelCode._10); gradeLevels.addGradeLevel(GradeLevelCode._11); gradeLevels.addGradeLevel(GradeLevelCode._12); info.setGradeLevels(gradeLevels); Address address = new Address(); address.setCity("Salt Lake City"); address.setStateProvince(StatePrCode.IL); address.setCountry(CountryCode.US); address.setPostalCode("84102"); Street street = new Street(); street.setLine1("1 IBM Plaza"); street.setApartmentNumber("2000"); street.setLine2("Suite 2000"); street.setLine3("Salt Lake City, IL 84102"); street.setStreetName("IBM way"); street.setStreetNumber("1"); street.setStreetType("Plaza"); street.setApartmentType("Suite"); address.setStreet(street); address.setType(AddressType.MAILING); AddressList addressList = new AddressList(); addressList.add(address); info.setAddressList(addressList); PhoneNumberList phoneNumberList = new PhoneNumberList(); phoneNumberList.addPhoneNumber(PhoneNumberType.PRIMARY, "(312) 555-1234"); phoneNumberList.addPhoneNumber(PhoneNumberType.FAX, "(312) 555-2364"); info.setPhoneNumberList(phoneNumberList); return info; }  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; }