mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Merge pull request #94 from dsyer/SPR-9498
SPR-9498: relax logic detecting successful property editor after conversion exception
This commit is contained in:
@@ -24,9 +24,12 @@ import java.util.Set;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
|
||||
import org.springframework.util.MultiValueMap;
|
||||
|
||||
/**
|
||||
* @author Darren Davison
|
||||
* @author Juergen Hoeller
|
||||
* @author Dave Syer
|
||||
*/
|
||||
public class CollectionFactoryTests extends TestCase {
|
||||
|
||||
@@ -50,6 +53,11 @@ public class CollectionFactoryTests extends TestCase {
|
||||
assertTrue(map.getClass().getName().endsWith("ConcurrentHashMap"));
|
||||
}
|
||||
|
||||
public void testMultiValueMap() {
|
||||
Map map = CollectionFactory.createMap(MultiValueMap.class, 16);
|
||||
assertTrue(map.getClass().getName().endsWith("MultiValueMap"));
|
||||
}
|
||||
|
||||
public void testConcurrentMapWithExplicitInterface() {
|
||||
ConcurrentMap map = CollectionFactory.createConcurrentMap(16);
|
||||
assertTrue(map.getClass().getSuperclass().getName().endsWith("ConcurrentHashMap"));
|
||||
|
||||
Reference in New Issue
Block a user