more converters; since 3.0

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1522 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
Keith Donald
2009-07-12 17:47:33 +00:00
parent ed8a512832
commit 01a770a2b8
41 changed files with 256 additions and 228 deletions
@@ -219,7 +219,6 @@ public class GenericTypeConverterTests {
public Map<Integer, FooEnum> genericMap = new HashMap<Integer, FooEnum>();
@Test
@Ignore
public void convertMapToMap() throws Exception {
Map<String, String> foo = new HashMap<String, String>();
foo.put("1", "BAR");
@@ -231,15 +230,15 @@ public class GenericTypeConverterTests {
assertEquals(map.get(2), FooEnum.BAZ);
}
@Ignore
@Test
public void convertObjectToArray() {
String[] result = (String[]) converter.convert("1,2,3", String[].class);
assertEquals(1, result.length);
assertEquals("1,2,3", result[0]);
assertEquals(3, result.length);
assertEquals("1", result[0]);
assertEquals("2", result[1]);
assertEquals("3", result[2]);
}
@Ignore
@Test
public void convertObjectToArrayWithElementConversion() {
converter.add(new StringToInteger());