Package org.dozer.vo.deepindex.isaccessible

Examples of org.dozer.vo.deepindex.isaccessible.FlatPerson


    Vector<Phone> phonesList = new Vector<Phone>();
    Phone phone = new Phone();
    phone.setNumber("911");
    phonesList.add(phone);
    source.phones = phonesList;
    FlatPerson dest = newInstance(FlatPerson.class);

    mapper.map(source, dest);
    assertEquals(dest.getPhoneNumber(), source.phones.get(0).getNumber());
  }
View Full Code Here


  @Test
  public void testDeepMapIndexedIsAccessibleInversed() throws Exception {
    mapper = getMapper(new String[] { "deepMappingWithIndexAndIsAccessible.xml" });

    FlatPerson source = newInstance(FlatPerson.class);
    source.setPhoneNumber("911");
    Person dest = newInstance(Person.class);

    mapper.map(source, dest);
    assertEquals(dest.phones.get(0).getNumber(), source.getPhoneNumber());
  }
View Full Code Here

    Vector<Phone> phonesList = new Vector<Phone>();
    Phone phone = new Phone();
    phone.setNumber("911");
    phonesList.add(phone);
    source.phones = phonesList;
    FlatPerson dest = newInstance(FlatPerson.class);

    mapper.map(source, dest);
    assertEquals(dest.getPhoneNumber(), source.phones.get(0).getNumber());
  }
View Full Code Here

  @Test
  public void testDeepMapIndexedIsAccessibleInversed() throws Exception {
    mapper = getMapper(new String[] { "deepMappingWithIndexAndIsAccessible.xml" });

    FlatPerson source = newInstance(FlatPerson.class);
    source.setPhoneNumber("911");
    Person dest = newInstance(Person.class);

    mapper.map(source, dest);
    assertEquals(dest.phones.get(0).getNumber(), source.getPhoneNumber());
  }
View Full Code Here

TOP

Related Classes of org.dozer.vo.deepindex.isaccessible.FlatPerson

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.