ma.glasnost.orika.test.generator
Class ExpanderTestCase

java.lang.Object
  extended by ma.glasnost.orika.test.generator.ExpanderTestCase

public class ExpanderTestCase
extends Object

This test case demonstrates two things together: 1) The usage of the ScoringClassMapBuilder to automagically guess the right mapping of various fields based on their "sameness" 2) The usage of built-in nested field mapping functionality to handle mapping these objects, resulting in the mapping of a flat list structure into an expanded object graph by guessing how the fields should line up.

Author:
matt.deboer@gmail.com

Nested Class Summary
static class ExpanderTestCase.Day
           
static class ExpanderTestCase.FlatData
           
static class ExpanderTestCase.Month
           
static class ExpanderTestCase.Year
           
 
Constructor Summary
ExpanderTestCase()
           
 
Method Summary
 void testExpand()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExpanderTestCase

public ExpanderTestCase()
Method Detail

testExpand

public void testExpand()


Copyright © 2012 Glasnost. All Rights Reserved.