@Test public void populateShouldAddAddress1OnAddressInformation() { testObj.populate(billingInfo, address); assertEquals(ADDRESS_1, address.getAddress1()); }
@Override public void populate(final BillingInfo source, final Address target) throws ConversionException { target.setAddress1(source.getStreet1()); target.setAddress2(source.getStreet2()); target.setFirstName(source.getFirstName()); target.setLastName(source.getLastName()); target.setCity(source.getCity()); target.setCountryCode(source.getCountry()); target.setState(source.getState()); target.setTelephoneNumber(source.getPhoneNumber()); target.setPostalCode(source.getPostalCode()); }
WorldpayBillingInfoAddressPopulator implements Populator<BillingInfo, Address> { @Override public void populate(final BillingInfo source, final Address target) throws ConversionException { target.setAddress1(source.getStreet1()); target.setAddress2(source.getStreet2()); target.setFirstName(source.getFirstName()); target.setLastName(source.getLastName()); target.setCity(source.getCity()); target.setCountryCode(source.getCountry()); target.setState(source.getState()); target.setTelephoneNumber(source.getPhoneNumber()); target.setPostalCode(source.getPostalCode()); } }
WorldpayBillingInfoAddressPopulator implements Populator<BillingInfo, Address> { @Override public void populate(final BillingInfo source, final Address target) throws ConversionException { target.setAddress1(source.getStreet1()); target.setAddress2(source.getStreet2()); target.setFirstName(source.getFirstName()); target.setLastName(source.getLastName()); target.setCity(source.getCity()); target.setCountryCode(source.getCountry()); target.setState(source.getState()); target.setTelephoneNumber(source.getPhoneNumber()); target.setPostalCode(source.getPostalCode()); }  }
WorldpayBillingInfoAddressPopulator implements Populator<BillingInfo, Address> { @Override public void populate(final BillingInfo source, final Address target) throws ConversionException { target.setAddress1(source.getStreet1()); target.setAddress2(source.getStreet2()); target.setFirstName(source.getFirstName()); target.setLastName(source.getLastName()); target.setCity(source.getCity()); target.setCountryCode(source.getCountry()); target.setState(source.getState()); target.setTelephoneNumber(source.getPhoneNumber()); target.setPostalCode(source.getPostalCode()); }  @Override void populate(final BillingInfo source, final Address target); }
WorldpayBillingInfoAddressPopulator implements Populator<BillingInfo, Address> { @Override public void populate(final BillingInfo source, final Address target) throws ConversionException { target.setAddress1(source.getStreet1()); target.setAddress2(source.getStreet2()); target.setFirstName(source.getFirstName()); target.setLastName(source.getLastName()); target.setCity(source.getCity()); target.setCountryCode(source.getCountry()); target.setState(source.getState()); target.setTelephoneNumber(source.getPhoneNumber()); target.setPostalCode(source.getPostalCode()); }  @Override void populate(final BillingInfo source, final Address target);  }