Package org.dozer.functional_tests.support

Examples of org.dozer.functional_tests.support.StringAppendCustomConverter


  @Test
  public void testFieldCustomConverter_WithCustomConverterId() throws Exception {
    mapper = getMapper(new String[] { "fieldCustomConverter.xml" });
    Map<String, CustomConverter> map = newInstance(HashMap.class);
    map.put("CustomConverterWithId", new StringAppendCustomConverter());
    ((DozerBeanMapper) mapper).setCustomConvertersWithId(map);
    AnotherTestObject src = newInstance(AnotherTestObject.class);
    src.setField3("field3");

    SimpleObj dest = mapper.map(src, SimpleObj.class);
View Full Code Here


  @Test
  public void testFieldCustomConverter_WithCustomConverterId() throws Exception {
    mapper = getMapper(new String[] { "fieldCustomConverter.xml" });
    Map<String, CustomConverter> map = newInstance(HashMap.class);
    map.put("CustomConverterWithId", new StringAppendCustomConverter());
    ((DozerBeanMapper) mapper).setCustomConvertersWithId(map);
    AnotherTestObject src = newInstance(AnotherTestObject.class);
    src.setField3("field3");

    SimpleObj dest = mapper.map(src, SimpleObj.class);
View Full Code Here

TOP

Related Classes of org.dozer.functional_tests.support.StringAppendCustomConverter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.