1
2
3
4
5
6
7
8
9
10
11 package org.mule.transformers.simple;
12
13 import org.mule.tck.AbstractTransformerTestCase;
14 import org.mule.umo.transformer.UMOTransformer;
15
16 import java.util.Map;
17 import java.util.TreeMap;
18
19 public class ObjectToStringWithMapTestCase extends AbstractTransformerTestCase
20 {
21
22 public UMOTransformer getTransformer() throws Exception
23 {
24 return new ObjectToString();
25 }
26
27 public Object getTestData()
28 {
29
30
31 Map map = new TreeMap();
32 map.put("existingValue", "VALUE");
33 map.put("nonexistingValue", null);
34 return map;
35 }
36
37 public Object getResultData()
38 {
39 return "existingValue:VALUE|nonexistingValue:null";
40 }
41
42 public UMOTransformer getRoundTripTransformer() throws Exception
43 {
44
45 return null;
46 }
47
48 }
49
50