use of org.apache.camel.converter.dozer.DozerTestArtifactsFactory.createMapper in project camel by apache.
the class DozerTypeConverterTest method verifyCustomerMapping.
@Test
public void verifyCustomerMapping() throws Exception {
Mapper mapper = DozerTestArtifactsFactory.createMapper();
Customer service = createServiceCustomer();
org.apache.camel.converter.dozer.model.Customer model = mapper.map(service, org.apache.camel.converter.dozer.model.Customer.class);
Customer roundTrip = mapper.map(model, Customer.class);
assertEquals(service, roundTrip);
}
Aggregations