@Test public void testMappings() { map.clear(); map.put(ElectronicIdType.BARCODE, "Other"); map.put(ElectronicIdType.MAGSTRIPE, "Other"); map.put(ElectronicIdType.PIN, "PIN"); map.put(ElectronicIdType.RFID, "Other"); ElectronicIdList list = getElectronicIdList(); List<StaffIdentificationCode> results = converter.convert(list); Assert.assertEquals(list.size(), results.size()); int newCounter = 0; for (StaffIdentificationCode it : results) { Assert.assertNotNull(it); ElectronicId original = list.get(newCounter++); testMapping(original, it); } ElectronicIdList list2 = getElectronicIdList(); List<StaffIdentificationCode> results2 = converter.convert(list2); Assert.assertEquals(list2.size(), results2.size()); newCounter = 0; for (StaffIdentificationCode it : results2) { Assert.assertNotNull(it); ElectronicId original = list2.get(newCounter++); testMapping(original, it); } }
public List<StaffIdentificationCode> convert(ElectronicIdList electronicIdList) { if (electronicIdList == null) { return null; } return toSliStaffIdentificationCodeList(electronicIdList.getElectronicIds()); }
ElectronicIdListConverter { public List<StaffIdentificationCode> convert(ElectronicIdList electronicIdList) { if (electronicIdList == null) { return null; } return toSliStaffIdentificationCodeList(electronicIdList.getElectronicIds()); } }
ElectronicIdListConverter { public List<StaffIdentificationCode> convert(ElectronicIdList electronicIdList) { if (electronicIdList == null) { return null; } return toSliStaffIdentificationCodeList(electronicIdList.getElectronicIds()); }  }
ElectronicIdListConverter { public List<StaffIdentificationCode> convert(ElectronicIdList electronicIdList) { if (electronicIdList == null) { return null; } return toSliStaffIdentificationCodeList(electronicIdList.getElectronicIds()); }  List<StaffIdentificationCode> convert(ElectronicIdList electronicIdList); }
ElectronicIdListConverter { public List<StaffIdentificationCode> convert(ElectronicIdList electronicIdList) { if (electronicIdList == null) { return null; } return toSliStaffIdentificationCodeList(electronicIdList.getElectronicIds()); }  List<StaffIdentificationCode> convert(ElectronicIdList electronicIdList);  }