Examples of ChildDOM


Examples of org.dozer.vo.map.ChildDOM

  public void testNestedCustomMap() {
    mapper = getMapper("mapMapping4.xml");

    ParentDOM src = newInstance(ParentDOM.class);
    src.setTest("someTestValue");
    ChildDOM child = newInstance(ChildDOM.class);
    child.setChildName("someChildName");
    src.setChild(child);

    GenericDOM result = mapper.map(src, GenericDOM.class);
    assertEquals("someTestValue", result.get("test"));
    GenericDOM resultChild = (GenericDOM) result.get("child");
View Full Code Here

Examples of org.dozer.vo.map.ChildDOM

  public void testNestedCustomMap() {
    mapper = getMapper("mapMapping4.xml");

    ParentDOM src = newInstance(ParentDOM.class);
    src.setTest("someTestValue");
    ChildDOM child = newInstance(ChildDOM.class);
    child.setChildName("someChildName");
    src.setChild(child);

    GenericDOM result = mapper.map(src, GenericDOM.class);
    assertEquals("someTestValue", result.get("test"));
    GenericDOM resultChild = (GenericDOM) result.get("child");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.