Package org.dozer.vo.inheritance.hints

Examples of org.dozer.vo.inheritance.hints.Target


    HashSet<Base> set = new HashSet<Base>();
    set.add(new BaseA());
    set.add(new BaseB());
    source.setSet(set);

    Target result = mapper.map(source, Target.class);

    assertNotNull(result);
    assertNotNull(result.getSet());
    assertEquals(2, result.getSet().size());

    Object[] objects = result.getSet().toArray();
    assertTrue(objects[0] instanceof Base2);
    assertTrue(objects[1] instanceof Base2);
    assertNotSame(objects[0].getClass(), objects[1].getClass());
  }
View Full Code Here


    HashSet<Base> set = new HashSet<Base>();
    set.add(new BaseA());
    set.add(new BaseB());
    source.setSet(set);

    Target result = mapper.map(source, Target.class);

    assertNotNull(result);
    assertNotNull(result.getSet());
    assertEquals(2, result.getSet().size());

    Object[] objects = result.getSet().toArray();
    assertTrue(objects[0] instanceof Base2);
    assertTrue(objects[1] instanceof Base2);
    assertNotSame(objects[0].getClass(), objects[1].getClass());
  }
View Full Code Here

TOP

Related Classes of org.dozer.vo.inheritance.hints.Target

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.