INT-575, Added the following to MapToObjectTransformer:

1. Javadoc
2. Added check to only allow 'prototype' beans to be specified during the construction
3. Made sure that instance of the transformed Object is created only during the transformation
This commit is contained in:
Oleg Zhurakousky
2010-03-10 02:06:56 +00:00
parent bcb0ef0d92
commit 224861f5b8
2 changed files with 18 additions and 7 deletions

View File

@@ -64,7 +64,7 @@ public class MapToObjectTransformerTests {
}
@SuppressWarnings("unchecked")
@Test(expected=MessageTransformationException.class)
public void testMapToObjectTransformationWithSingleton(){
public void testMapToObjectTransformationNonPrototype(){
Map map = new HashMap();
map.put("fname", "Justin");
map.put("lname", "Case");