Package org.dozer.vo.abstractinheritance

Examples of org.dozer.vo.abstractinheritance.AbstractA


    assertEquals("abstractBField not mapped correctly", src.getAbstractAField(), dest.getAbstractBField());
    assertEquals("field1 not mapped correctly", src.getField1(), ((B)dest).getField1());
    assertEquals("fieldB not mapped correctly", src.getFieldA(), ((B)dest).getFieldB());

    // Remap to each other to test bi-directional mapping
    AbstractA mappedSrc = mapper.map(dest, AbstractA.class);
    AbstractB mappedDest = mapper.map(mappedSrc, AbstractB.class);
   
    assertEquals("objects not mapped correctly bi-directional", dest, mappedDest);
  }
View Full Code Here


    assertEquals("abstractBField not mapped correctly", src.getAbstractAField(), dest.getAbstractBField());
    assertEquals("field1 not mapped correctly", src.getField1(), ((B)dest).getField1());
    assertEquals("fieldB not mapped correctly", src.getFieldA(), ((B)dest).getFieldB());

    // Remap to each other to test bi-directional mapping
    AbstractA mappedSrc = mapper.map(dest, AbstractA.class);
    AbstractB mappedDest = mapper.map(mappedSrc, AbstractB.class);
   
    assertEquals("objects not mapped correctly bi-directional", dest, mappedDest);
  }
View Full Code Here

TOP

Related Classes of org.dozer.vo.abstractinheritance.AbstractA

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.