@Test public void testMappings() { map.clear(); map.put(OtherIdType.ACT_INST, "Other"); map.put(OtherIdType.ACT_PROG, "Other"); map.put(OtherIdType.ATP, "Other"); map.put(OtherIdType.CA_SIN, "Canadian SIN"); map.put(OtherIdType.CERTIFICATE, "Professional Certificate"); map.put(OtherIdType.CONTRACTOR, "Other"); map.put(OtherIdType.DISTRICT_ASSIGNED, "District"); map.put(OtherIdType.DRIVERS_LICENSE, "Drivers License"); map.put(OtherIdType.DUNS, "Other"); map.put(OtherIdType.FAMILY_UNIT, "Other"); map.put(OtherIdType.FEDERAL, "Federal"); map.put(OtherIdType.HEALTH_RECORD, "Health Record"); map.put(OtherIdType.IPEDS, "Other"); map.put(OtherIdType.LEA_SCHOOL, "School"); map.put(OtherIdType.MEDICAID, "Medicaid"); map.put(OtherIdType.MIGRANT, "Other"); map.put(OtherIdType.NCES_LEA, "Other"); map.put(OtherIdType.NCES_LEA, "Other"); map.put(OtherIdType.OTHER, "Other"); map.put(OtherIdType.OTHER_AGENCY, "Other"); map.put(OtherIdType.OTHER_FEDERAL, "Other Federal"); map.put(OtherIdType.PERSONAL, "Other"); map.put(OtherIdType.SCHOOL_ASSIGNED, "School"); map.put(OtherIdType.SEA_LEA, "State"); map.put(OtherIdType.SEA_SCHOOL, "State"); map.put(OtherIdType.SELECTIVE_SERVICE, "Other"); map.put(OtherIdType.SIF1x_DISTRICT_ASSIGNED_NUM, "District"); map.put(OtherIdType.SIF1x_DRIVERS_LICENSE, "Drivers License"); map.put(OtherIdType.SIF1x_FAMILY_UNIT, "Other"); map.put(OtherIdType.SIF1x_HEATH_RECORD, "Health Record"); map.put(OtherIdType.SIF1x_MEDICAID, "Medicaid"); map.put(OtherIdType.SIF1x_MIGRANT, "Other"); map.put(OtherIdType.SIF1x_OTHER, "Other"); map.put(OtherIdType.SIF1x_PIN, "PIN"); map.put(OtherIdType.SIF1x_PROFESSIONAL_LICENSE, "Professional Certificate"); map.put(OtherIdType.SIF1x_SCHOOL_ASSIGNED_NUM, "School"); map.put(OtherIdType.SIF1x_SELECTIVE_SERVICE, "Selective Service"); map.put(OtherIdType.SIF1x_SSN, "SSN"); map.put(OtherIdType.SIF1x_STATE_ASSIGNED_NUM, "State"); map.put(OtherIdType.SIF1x_VISA, "US Visa"); OtherIdList list = getOtherIdList(); List<StaffIdentificationCode> results = converter.convert(list); Assert.assertEquals(list.size(), results.size()); int newCounter = 0; for (StaffIdentificationCode it : results) { Assert.assertNotNull(it); OtherId original = list.get(newCounter++); testMapping(original, it); } OtherIdList list2 = getOtherIdList(); List<StaffIdentificationCode> results2 = converter.convert(list2); Assert.assertEquals(list2.size(), results2.size()); newCounter = 0; for (StaffIdentificationCode it : results2) { Assert.assertNotNull(it); OtherId original = list2.get(newCounter++); testMapping(original, it); } }
public List<StaffIdentificationCode> convert(OtherIdList otherIdList) { if (otherIdList == null) { return null; } return toSliStaffIdentificationCodeList(otherIdList.getOtherIds()); }
OtherIdListConverter { public List<StaffIdentificationCode> convert(OtherIdList otherIdList) { if (otherIdList == null) { return null; } return toSliStaffIdentificationCodeList(otherIdList.getOtherIds()); } }
OtherIdListConverter { public List<StaffIdentificationCode> convert(OtherIdList otherIdList) { if (otherIdList == null) { return null; } return toSliStaffIdentificationCodeList(otherIdList.getOtherIds()); }  }
OtherIdListConverter { public List<StaffIdentificationCode> convert(OtherIdList otherIdList) { if (otherIdList == null) { return null; } return toSliStaffIdentificationCodeList(otherIdList.getOtherIds()); }  List<StaffIdentificationCode> convert(OtherIdList otherIdList); }
OtherIdListConverter { public List<StaffIdentificationCode> convert(OtherIdList otherIdList) { if (otherIdList == null) { return null; } return toSliStaffIdentificationCodeList(otherIdList.getOtherIds()); }  List<StaffIdentificationCode> convert(OtherIdList otherIdList);  }