Package org.dozer.vo.bidirectional

Examples of org.dozer.vo.bidirectional.B


  @Test
  public void testSimpleBidirectional() {
    // A contains B and B contains A.
    A src = newInstance(A.class);
    B field1 = newInstance(B.class);
    field1.setField1(src);
    src.setField1(field1);

    B dest = mapper.map(src, B.class);
    assertNotNull("field1 should have been mapped", dest.getField1());
  }
View Full Code Here


  @Test
  public void testSimpleBidirectional() {
    // A contains B and B contains A.
    A src = newInstance(A.class);
    B field1 = newInstance(B.class);
    field1.setField1(src);
    src.setField1(field1);

    B dest = mapper.map(src, B.class);
    assertNotNull("field1 should have been mapped", dest.getField1());
  }
View Full Code Here

TOP

Related Classes of org.dozer.vo.bidirectional.B

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.