All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.anaptecs.jeaf.junit.pojo.POJOMapperTest Maven / Gradle / Ivy

There is a newer version: 1.24.2
Show newest version
/**
 * Copyright 2004 - 2019 anaptecs GmbH, Burgstr. 96, 72764 Reutlingen, Germany
 *
 * All rights reserved.
 */
package com.anaptecs.jeaf.junit.pojo;

import com.anaptecs.jeaf.core.api.ObjectMapper.MappingType;
import com.anaptecs.jeaf.junit.core.mapper.PlainPOJOToClassAConverter;
import com.anaptecs.jeaf.junit.pojo.mapper.ChildPOJOToBChildPOJOConverter;

public class POJOMapperTest {

  public void testPOJOMApper( ) {
    PlainPOJO lSourceObject = PlainPOJOToClassAConverter.createNewSourceObject(null);
    lSourceObject.toString();

    ChildPOJO lNewSourceObject = ChildPOJOToBChildPOJOConverter.createNewSourceObject(null);
    BChildPOJO lNewTargetObject = ChildPOJOToBChildPOJOConverter.createNewTargetObject(lNewSourceObject);
    ChildPOJOToBChildPOJOConverter lObjectMapper = ChildPOJOToBChildPOJOConverter.getConverter();
    lObjectMapper.applyMappings(lNewSourceObject, lNewTargetObject, MappingType.UPDATE);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy