@Test public void testEmptyAddress() { AddressList list = new AddressList(); openadk.library.common.Address original = new openadk.library.common.Address(); list.add(original); List<Address> result = converter.convert(list); Assert.assertEquals(1, result.size()); Address address = result.get(0); Assert.assertEquals("Other", address.getAddressType()); Assert.assertNull(address.getCity()); Assert.assertNull(address.getCountryCode()); Assert.assertNull(address.getPostalCode()); Assert.assertNull(address.getStateAbbreviation()); Assert.assertNull(address.getStreetNumberName()); }
public List<Address> convert(AddressList addressList) { if (addressList == null) { return null; } return toSliAddressList(addressList.getAddresses()); }
AddressListConverter { public List<Address> convert(AddressList addressList) { if (addressList == null) { return null; } return toSliAddressList(addressList.getAddresses()); } }
AddressListConverter { public List<Address> convert(AddressList addressList) { if (addressList == null) { return null; } return toSliAddressList(addressList.getAddresses()); }  }
AddressListConverter { public List<Address> convert(AddressList addressList) { if (addressList == null) { return null; } return toSliAddressList(addressList.getAddresses()); }  List<Address> convert(AddressList addressList); List<Address> convert(StudentAddressList addressList); }
AddressListConverter { public List<Address> convert(AddressList addressList) { if (addressList == null) { return null; } return toSliAddressList(addressList.getAddresses()); }  List<Address> convert(AddressList addressList); List<Address> convert(StudentAddressList addressList);  }