Package org.dozer.vo

Examples of org.dozer.vo.Person1


  @Test
  public void testMappingForList() {
    Mapper mapper = getMapper("listMapping.xml");

    Person1 person1 = new Person1();

    person1.setFamilyName("Ganga");
    person1.setSecondFamilyName("Chacon");

    Person2 result = mapper.map(person1, Person2.class);

    assertNotNull(result);
    assertEquals("Ganga", result.getPersonNames().get(0).getFamilyName());
View Full Code Here


  @Test
  public void testMappingForList() {
    Mapper mapper = getMapper("listMapping.xml");

    Person1 person1 = new Person1();

    person1.setFamilyName("Ganga");
    person1.setSecondFamilyName("Chacon");

    Person2 result = mapper.map(person1, Person2.class);

    assertNotNull(result);
    assertEquals("Ganga", result.getPersonNames().get(0).getFamilyName());
View Full Code Here

TOP

Related Classes of org.dozer.vo.Person1

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.