@Test public void mapV21() { AddressV2 address = createV21(); mapper.map(address); assertThat(address.getAddressLine1(), is("Samplestreet 1")); assertThat(address.getAddressLine2(), is(" ")); assertThat(address.getAddressLines(), hasItems("Samplestreet 1", " ")); assertThat(address.getLocation().getZipCode(), is("12345")); assertThat(address.getLocation().getCityName(), is("Samplecity")); assertThat(address.getCity().getZipCode(), is("12345")); assertThat(address.getCity().getCityName(), is("Samplecity")); }
public void map(Object object) { map(object, new DefaultVersionContext(object)); }
CompatibilityMapper { public void map(Object object) { map(object, new DefaultVersionContext(object)); } }
CompatibilityMapper { public void map(Object object) { map(object, new DefaultVersionContext(object)); } CompatibilityMapper(VersionTypeFactory factory); }
CompatibilityMapper { public void map(Object object) { map(object, new DefaultVersionContext(object)); } CompatibilityMapper(VersionTypeFactory factory); void map(Object object); void map(Object object, DefaultVersionContext context); }
CompatibilityMapper { public void map(Object object) { map(object, new DefaultVersionContext(object)); } CompatibilityMapper(VersionTypeFactory factory); void map(Object object); void map(Object object, DefaultVersionContext context);  }