Package org.dozer.vo.inheritance.iface

Examples of org.dozer.vo.inheritance.iface.Person


  public void testInterfaceInheritance_GetterSetterAtDifferentLevels() {
    mapper = getMapper(new String[] { "inheritanceMapping.xml" });

    Long id = new Long(100L);
    String name = "John";
    Person person = new PersonImpl(id, name);
    PersonDTO personDTO = mapper.map(person, PersonDTO.class);

    assertEquals("Person DTO has incorrect personId value", id, personDTO.getPersonId());
    assertNotNull("name should not be null", personDTO.getName());
    assertEquals("Person DTO has incorrect name value", name, personDTO.getName());
View Full Code Here


    Long id = new Long(100L);
    String name = "John";
    String address = "123 Main Street";

    final Person person = new PersonImpl(id, name);
    person.setAddress(address);

    PersonWithAddressDTO personWithAddressDTO = mapper.map(newInstance(new Class[] { Person.class }, person),
        PersonWithAddressDTO.class);

    assertEquals("Person DTO has incorrect personId value", id, personWithAddressDTO.getPersonId());
View Full Code Here

  public void testInterfaceInheritance_GetterSetterAtDifferentLevels() {
    mapper = getMapper(new String[] { "inheritanceMapping.xml" });

    Long id = new Long(100L);
    String name = "John";
    Person person = new PersonImpl(id, name);
    PersonDTO personDTO = mapper.map(person, PersonDTO.class);

    assertEquals("Person DTO has incorrect personId value", id, personDTO.getPersonId());
    assertNotNull("name should not be null", personDTO.getName());
    assertEquals("Person DTO has incorrect name value", name, personDTO.getName());
View Full Code Here

    Long id = new Long(100L);
    String name = "John";
    String address = "123 Main Street";

    final Person person = new PersonImpl(id, name);
    person.setAddress(address);

    PersonWithAddressDTO personWithAddressDTO = mapper.map(newInstance(new Class[] { Person.class }, person),
        PersonWithAddressDTO.class);

    assertEquals("Person DTO has incorrect personId value", id, personWithAddressDTO.getPersonId());
View Full Code Here

TOP

Related Classes of org.dozer.vo.inheritance.iface.Person

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.