@Test public void testMappings() { map.clear(); map.put(PhoneNumberType.ALT, "Other"); map.put(PhoneNumberType.ANSWERING_SERVICE, "Other"); map.put(PhoneNumberType.APPOINTMENT, "Other"); map.put(PhoneNumberType.BEEPER, "Other"); map.put(PhoneNumberType.FAX, "Fax"); map.put(PhoneNumberType.INSTANT_MESSAGING, "Other"); map.put(PhoneNumberType.MEDIA_CONFERENCE, "Other"); map.put(PhoneNumberType.PRIMARY, "Main"); map.put(PhoneNumberType.SIF1x_ALT, "Other"); map.put(PhoneNumberType.SIF1x_ANSWERING_SERVICE, "Other"); map.put(PhoneNumberType.SIF1x_APPT_NUMBER, "Other"); map.put(PhoneNumberType.SIF1x_BEEPER, "Other"); map.put(PhoneNumberType.SIF1x_EXT, "Other"); map.put(PhoneNumberType.SIF1x_HOME_FAX, "Fax"); map.put(PhoneNumberType.SIF1x_HOME_PHONE, "Other"); map.put(PhoneNumberType.SIF1x_NIGHT_PHONE, "Other"); map.put(PhoneNumberType.SIF1x_OTHER_RES_FAX, "Other"); map.put(PhoneNumberType.SIF1x_OTHER_RES_PHONE, "Other"); map.put(PhoneNumberType.SIF1x_PERSONAL_CELL, "Other"); map.put(PhoneNumberType.SIF1x_PERSONAL_PHONE, "Other"); map.put(PhoneNumberType.SIF1x_TELEMAIL, "Other"); map.put(PhoneNumberType.SIF1x_TELEX, "Other"); map.put(PhoneNumberType.SIF1x_VOICEMAIL, "Other"); map.put(PhoneNumberType.SIF1x_WORK_CELL, "Other"); map.put(PhoneNumberType.SIF1x_WORK_FAX, "Other"); map.put(PhoneNumberType.SIF1x_WORK_PHONE, "Other"); map.put(PhoneNumberType.TELEMAIL, "Other"); map.put(PhoneNumberType.TELEX, "Other"); map.put(PhoneNumberType.VOICE_MAIL, "Other"); PhoneNumberList list = getPhoneNumberList(); List<InstitutionTelephone> results = converter.convertInstitutionTelephone(list); Assert.assertEquals(list.size(), results.size()); int newCounter = 0; for (InstitutionTelephone it : results) { Assert.assertNotNull(it); PhoneNumber original = list.get(newCounter++); testMapping(original, it); } }
public List<InstitutionTelephone> convertInstitutionTelephone(PhoneNumberList phoneNumberList) { if (phoneNumberList == null) { return null; } return toSliInstitutionTelephoneList(phoneNumberList.getPhoneNumbers()); }
PhoneNumberListConverter { public List<InstitutionTelephone> convertInstitutionTelephone(PhoneNumberList phoneNumberList) { if (phoneNumberList == null) { return null; } return toSliInstitutionTelephoneList(phoneNumberList.getPhoneNumbers()); } }
PhoneNumberListConverter { public List<InstitutionTelephone> convertInstitutionTelephone(PhoneNumberList phoneNumberList) { if (phoneNumberList == null) { return null; } return toSliInstitutionTelephoneList(phoneNumberList.getPhoneNumbers()); }  }
PhoneNumberListConverter { public List<InstitutionTelephone> convertInstitutionTelephone(PhoneNumberList phoneNumberList) { if (phoneNumberList == null) { return null; } return toSliInstitutionTelephoneList(phoneNumberList.getPhoneNumbers()); }  List<InstitutionTelephone> convertInstitutionTelephone(PhoneNumberList phoneNumberList); List<PersonalTelephone> convertPersonalTelephone(PhoneNumberList phoneNumberList); }
PhoneNumberListConverter { public List<InstitutionTelephone> convertInstitutionTelephone(PhoneNumberList phoneNumberList) { if (phoneNumberList == null) { return null; } return toSliInstitutionTelephoneList(phoneNumberList.getPhoneNumbers()); }  List<InstitutionTelephone> convertInstitutionTelephone(PhoneNumberList phoneNumberList); List<PersonalTelephone> convertPersonalTelephone(PhoneNumberList phoneNumberList);  }