Package org.dozer.vo.jaxb.employee

Examples of org.dozer.vo.jaxb.employee.EmployeeType


    source.getList().add(1);
    source.getList().add(2);

    source.getSubordinates().add(new StringContainer("John"));

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

    assertNotNull(result);
    assertEquals(2, result.getIds().size());
    assertTrue(result.getIds().contains(1));
    assertTrue(result.getIds().contains(2));
   
    assertEquals(1, result.getSubordinates().size());
    assertEquals("John", result.getSubordinates().get(0).getFirstName());
  }
View Full Code Here


    source.getList().add(1);
    source.getList().add(2);

    source.getSubordinates().add(new StringContainer("John"));

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

    assertNotNull(result);
    assertEquals(2, result.getIds().size());
    assertTrue(result.getIds().contains(1));
    assertTrue(result.getIds().contains(2));
   
    assertEquals(1, result.getSubordinates().size());
    assertEquals("John", result.getSubordinates().get(0).getFirstName());
  }
View Full Code Here

TOP

Related Classes of org.dozer.vo.jaxb.employee.EmployeeType

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.