@Test public void testGenerateTestSeaInfo() { SEAInfo seaInfo = SifEntityGenerator.generateTestSEAInfo(); Assert.assertEquals(SifEntityGenerator.TEST_SEAINFO_REFID, seaInfo.getRefId()); Assert.assertEquals("Illinois State Board of Education", seaInfo.getSEAName()); Assert.assertEquals("http: AddressList addressList = seaInfo.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 = seaInfo.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 SEAInfo generateTestSEAInfo() { SEAInfo info = new SEAInfo(); info.setRefId(TEST_SEAINFO_REFID); info.setSEAName("Illinois State Board of Education"); info.setSEAURL("http: 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 SEAInfo generateTestSEAInfo() { SEAInfo info = new SEAInfo(); info.setRefId(TEST_SEAINFO_REFID); info.setSEAName("Illinois State Board of Education"); info.setSEAURL("http: 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 SEAInfo generateTestSEAInfo() { SEAInfo info = new SEAInfo(); info.setRefId(TEST_SEAINFO_REFID); info.setSEAName("Illinois State Board of Education"); info.setSEAURL("http: 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 SEAInfo generateTestSEAInfo() { SEAInfo info = new SEAInfo(); info.setRefId(TEST_SEAINFO_REFID); info.setSEAName("Illinois State Board of Education"); info.setSEAURL("http: 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 SEAInfo generateTestSEAInfo() { SEAInfo info = new SEAInfo(); info.setRefId(TEST_SEAINFO_REFID); info.setSEAName("Illinois State Board of Education"); info.setSEAURL("http: 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; }