Package org.dozer.vo

Examples of org.dozer.vo.InsideTestObjectPrime


    House house = newInstance(House.class);
    MetalThingyIF thingy = newInstance(Car.class);
    thingy.setName("name");
    house.setThingy(thingy);
    ito.setHouse(house);
    InsideTestObjectPrime itop = mapper.map(ito, InsideTestObjectPrime.class);
    assertEquals("name", itop.getDeepInterfaceString());

    mapper.map(itop, InsideTestObject.class);
    assertEquals("name", ito.getHouse().getThingy().getName());
  }
View Full Code Here


    if (srcObj == null || srcObjClass == null) {
      throw new IllegalArgumentException("Source Object and Source Object Class params"
          + " should have been provided by the Dozer mapping engine");
    }

    InsideTestObjectPrime result = new InsideTestObjectPrime();
    result.setLabelPrime(((InsideTestObject) srcObj).getLabel());
    // Setting the following field so that we have something
    // to assert on that indicates it was created by the factory
    setCreatedByFactoryName(result, SampleCustomBeanFactory2.class.getName());

    return result;
View Full Code Here

    House house = newInstance(House.class);
    MetalThingyIF thingy = newInstance(Car.class);
    thingy.setName("name");
    house.setThingy(thingy);
    ito.setHouse(house);
    InsideTestObjectPrime itop = mapper.map(ito, InsideTestObjectPrime.class);
    assertEquals("name", itop.getDeepInterfaceString());

    mapper.map(itop, InsideTestObject.class);
    assertEquals("name", ito.getHouse().getThingy().getName());
  }
View Full Code Here

    if (srcObj == null || srcObjClass == null) {
      throw new IllegalArgumentException("Source Object and Source Object Class params"
          + " should have been provided by the Dozer mapping engine");
    }

    InsideTestObjectPrime result = new InsideTestObjectPrime();
    result.setLabelPrime(((InsideTestObject) srcObj).getLabel());
    // Setting the following field so that we have something
    // to assert on that indicates it was created by the factory
    setCreatedByFactoryName(result, SampleCustomBeanFactory2.class.getName());

    return result;
View Full Code Here

TOP

Related Classes of org.dozer.vo.InsideTestObjectPrime

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.