Package org.dozer.vo

Examples of org.dozer.vo.ArrayCustConverterObj


    // Test that custom converter is used when src is an Array and dest is a String
    mapper = getMapper(new String[] { "arrayToStringCustomConverter.xml" });
    SimpleObj simple = newInstance(SimpleObj.class);
    simple.setField1(String.valueOf(System.currentTimeMillis()));

    ArrayCustConverterObj src = newInstance(ArrayCustConverterObj.class);
    src.setField1(new SimpleObj[] { simple });

    ArrayCustConverterObjPrime dest = mapper.map(src, ArrayCustConverterObjPrime.class);

    // Custom converter specified for the field1 mapping, so verify custom converter was actually used
    assertNotNull("dest field1 should not be null", dest.getField1Prime());
View Full Code Here


    for (int i = 0; i < 6000; i++) {
      SimpleObj simple = new SimpleObj();
      simple.setField1(String.valueOf(System.currentTimeMillis()));

      ArrayCustConverterObj src = new ArrayCustConverterObj();
      src.setField1(new SimpleObj[] { simple });

      mapper.map(src, ArrayCustConverterObjPrime.class);
    }
  }
View Full Code Here

    for (int i = 0; i < 6000; i++) {
      SimpleObj simple = new SimpleObj();
      simple.setField1(String.valueOf(System.currentTimeMillis()));

      ArrayCustConverterObj src = new ArrayCustConverterObj();
      src.setField1(new SimpleObj[] { simple });

      mapper.map(src, ArrayCustConverterObjPrime.class);
    }
  }
View Full Code Here

    // Test that custom converter is used when src is an Array and dest is a String
    mapper = getMapper(new String[] { "arrayToStringCustomConverter.xml" });
    SimpleObj simple = newInstance(SimpleObj.class);
    simple.setField1(String.valueOf(System.currentTimeMillis()));

    ArrayCustConverterObj src = newInstance(ArrayCustConverterObj.class);
    src.setField1(new SimpleObj[] { simple });

    ArrayCustConverterObjPrime dest = mapper.map(src, ArrayCustConverterObjPrime.class);

    // Custom converter specified for the field1 mapping, so verify custom converter was actually used
    assertNotNull("dest field1 should not be null", dest.getField1Prime());
View Full Code Here

TOP

Related Classes of org.dozer.vo.ArrayCustConverterObj

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.