ma.glasnost.orika.test.community
Class Issue21TestCase

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

@ContextConfiguration(locations="classpath:Issue21TestCase-context.xml")
@Transactional
@DirtiesContext
public class Issue21TestCase
extends Object

Author:
Dmitriy Khomyakov, matt.deboer@gmail.com TODO: this particular test case is imported AS-IS, but should probably be trimmed down to the specific issue of concern here which is: Reuse of the same MappingStrategy over map(source) and map(source, dest) is not valid, since the mapping strategy implementations are distinguished by whether or not they instantiate or map in place (among other things). This means that the MappingStrategyKey needs to reflect whether or not the destination object is provided, since a different strategy must be used...

Constructor Summary
Issue21TestCase()
           
 
Method Summary
protected  org.hibernate.Session getSession()
           
 void init()
           
 void testChangeAuthoritiesOfUser()
           
 void testChangeGroup()
           
 void testMapUser()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Issue21TestCase

public Issue21TestCase()
Method Detail

getSession

protected org.hibernate.Session getSession()

init

public void init()

testMapUser

public void testMapUser()

testChangeAuthoritiesOfUser

public void testChangeAuthoritiesOfUser()

testChangeGroup

public void testChangeGroup()


Copyright © 2012 Glasnost. All Rights Reserved.