Package org.dozer.vo.inheritance.iface

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


    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());
    assertNotNull("name should not be null", personWithAddressDTO.getName());
    assertEquals("Person DTO has incorrect name value", name, personWithAddressDTO.getName());
    assertNotNull("addresss should not be null", personWithAddressDTO.getAddress());
    assertEquals("Person DTO has incorrect address value", address, personWithAddressDTO.getAddress());
  }
View Full Code Here


    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());
    assertNotNull("name should not be null", personWithAddressDTO.getName());
    assertEquals("Person DTO has incorrect name value", name, personWithAddressDTO.getName());
    assertNotNull("addresss should not be null", personWithAddressDTO.getAddress());
    assertEquals("Person DTO has incorrect address value", address, personWithAddressDTO.getAddress());
  }
View Full Code Here

TOP

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

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.