Package org.dozer.metadata

Examples of org.dozer.metadata.FieldMappingMetadata


  }
 
  @Test
  public void testAutoFieldMap() {
    ClassMappingMetadata classMetadata = mapMetadata.getClassMappingByName(CLASS_A, CLASS_B);
    FieldMappingMetadata fieldMetadata = classMetadata.getFieldMappingBySource(AUTOFIELD);
    assertEquals(AUTOFIELD, fieldMetadata.getDestinationName());
  }
View Full Code Here


  }
 
  @Test
  public void testCustomFieldMap() {
    ClassMappingMetadata classMetadata = mapMetadata.getClassMappingByName(CLASS_A, CLASS_B);
    FieldMappingMetadata fieldMetadata = classMetadata.getFieldMappingBySource(CUSTOM_FIELD_A);
    assertEquals(CUSTOM_FIELD_B, fieldMetadata.getDestinationName());
  }
View Full Code Here

  }
 
  @Test
  public void testCustomFieldMapBack() {
    ClassMappingMetadata classMetadata = mapMetadata.getClassMappingByName(CLASS_A, CLASS_B);
    FieldMappingMetadata fieldMetadata = classMetadata.getFieldMappingByDestination(CUSTOM_FIELD_B);
    assertEquals(CUSTOM_FIELD_A, fieldMetadata.getSourceName());
  }
View Full Code Here

TOP

Related Classes of org.dozer.metadata.FieldMappingMetadata

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.