ma.glasnost.orika.test.community
Class PersonMappingTestCase

java.lang.Object
  extended by ma.glasnost.orika.test.community.PersonMappingTestCase

public class PersonMappingTestCase
extends Object

There doesn't appear to be a way to do this mapping using default behavior...

Author:
keithroberts

Nested Class Summary
static class PersonMappingTestCase.FullPerson
           
static class PersonMappingTestCase.PersonBase
           
static class PersonMappingTestCase.PersonHolderA
           
static class PersonMappingTestCase.PersonHolderB
           
static class PersonMappingTestCase.PersonName
           
static class PersonMappingTestCase.SuffixPerson
           
 
Constructor Summary
PersonMappingTestCase()
           
 
Method Summary
 void testMultiMap()
          RUn 3 maps, rely on engine to map per the sub type.
 void testSingleMap()
          Uses one map only.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PersonMappingTestCase

public PersonMappingTestCase()
Method Detail

testMultiMap

public void testMultiMap()
                  throws Exception
RUn 3 maps, rely on engine to map per the sub type. Only one map appears to be retained in memory. The cache must key on the source type. This means you cannot have multiple maps with the same source type...

Throws:
Exception

testSingleMap

public void testSingleMap()
                   throws Exception
Uses one map only. This has a problem picking up the sub class contained in the list. When the syntax on the EL seems correct, get a stackoverflow exception.

Throws:
Exception


Copyright © 2014 Glasnost. All Rights Reserved.