Package org.dozer.vo.inheritance

Examples of org.dozer.vo.inheritance.Specific3


    so.setSuperAttr1("superAttr1");

    // validate abstract class
    Object obj = mapper.map(so, Specific3.class);
    assertTrue(obj instanceof Specific3);
    Specific3 spec3 = (Specific3) obj;
    assertEquals("superAttr1", spec3.getSuperAttr3());
    assertEquals("superAttr1", spec3.getSuperAttr2());

    // validate interface
    obj = mapper.map(so, Specific3.class);
    assertTrue(obj instanceof Specific3);
    spec3 = (Specific3) obj;
    assertEquals("superAttr1", spec3.getSuperAttr3());
    assertEquals("superAttr1", spec3.getSuperAttr2());

    WrapperSpecific ws = newInstance(WrapperSpecific.class);
    SpecificObject so2 = newInstance(SpecificObject.class);
    so2.setSuperAttr1("superAttr1");
    ws.setSpecificObject(so2);
View Full Code Here


    so.setSuperAttr1("superAttr1");

    // validate abstract class
    Object obj = mapper.map(so, Specific3.class);
    assertTrue(obj instanceof Specific3);
    Specific3 spec3 = (Specific3) obj;
    assertEquals("superAttr1", spec3.getSuperAttr3());
    assertEquals("superAttr1", spec3.getSuperAttr2());

    // validate interface
    obj = mapper.map(so, Specific3.class);
    assertTrue(obj instanceof Specific3);
    spec3 = (Specific3) obj;
    assertEquals("superAttr1", spec3.getSuperAttr3());
    assertEquals("superAttr1", spec3.getSuperAttr2());

    WrapperSpecific ws = newInstance(WrapperSpecific.class);
    SpecificObject so2 = newInstance(SpecificObject.class);
    so2.setSuperAttr1("superAttr1");
    ws.setSpecificObject(so2);
View Full Code Here

TOP

Related Classes of org.dozer.vo.inheritance.Specific3

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.