diff --git a/org.springframework.context/src/test/java/org/springframework/context/support/ConversionServiceFactoryBeanTests.java b/org.springframework.context/src/test/java/org/springframework/context/support/ConversionServiceFactoryBeanTests.java index b122ad09d85..7f88ebfd578 100644 --- a/org.springframework.context/src/test/java/org/springframework/context/support/ConversionServiceFactoryBeanTests.java +++ b/org.springframework.context/src/test/java/org/springframework/context/support/ConversionServiceFactoryBeanTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2010 the original author or authors. + * Copyright 2002-2011 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -18,9 +18,9 @@ package org.springframework.context.support; import java.util.Collections; import java.util.HashSet; +import java.util.Map; import java.util.Set; -import static org.junit.Assert.*; import org.junit.Test; import org.springframework.beans.ResourceTestBean; @@ -33,6 +33,8 @@ import org.springframework.core.convert.converter.GenericConverter; import org.springframework.core.io.ClassPathResource; import org.springframework.core.io.FileSystemResource; +import static org.junit.Assert.*; + /** * @author Keith Donald * @author Juergen Hoeller @@ -123,4 +125,14 @@ public class ConversionServiceFactoryBeanTests { public static class Baz { } + + public static class ComplexConstructorArgument { + + public ComplexConstructorArgument(Map map) { + assertTrue(!map.isEmpty()); + assertTrue(map.keySet().iterator().next() instanceof String); + assertTrue(map.values().iterator().next() instanceof Class); + } + } + } diff --git a/org.springframework.context/src/test/java/org/springframework/context/support/conversionService.xml b/org.springframework.context/src/test/java/org/springframework/context/support/conversionService.xml index 1675291138b..57c2b5c8af0 100644 --- a/org.springframework.context/src/test/java/org/springframework/context/support/conversionService.xml +++ b/org.springframework.context/src/test/java/org/springframework/context/support/conversionService.xml @@ -20,4 +20,12 @@ + + + + + + + + diff --git a/org.springframework.context/src/test/java/org/springframework/context/support/conversionServiceWithResourceOverriding.xml b/org.springframework.context/src/test/java/org/springframework/context/support/conversionServiceWithResourceOverriding.xml index b554301fd68..5e407ee0be0 100644 --- a/org.springframework.context/src/test/java/org/springframework/context/support/conversionServiceWithResourceOverriding.xml +++ b/org.springframework.context/src/test/java/org/springframework/context/support/conversionServiceWithResourceOverriding.xml @@ -24,4 +24,12 @@ + + + + + + + +