|
1 | 1 | /* |
2 | | - * Copyright 2002-2014 the original author or authors. |
| 2 | + * Copyright 2002-2016 the original author or authors. |
3 | 3 | * |
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
5 | 5 | * you may not use this file except in compliance with the License. |
|
25 | 25 | import java.net.URISyntaxException; |
26 | 26 | import java.net.URL; |
27 | 27 | import java.util.Map; |
| 28 | +import java.util.concurrent.atomic.AtomicInteger; |
28 | 29 |
|
29 | 30 | import org.apache.commons.logging.LogFactory; |
| 31 | +import org.junit.Ignore; |
30 | 32 | import org.junit.Test; |
31 | 33 | import org.xml.sax.InputSource; |
32 | 34 |
|
|
78 | 80 | * @author Chris Beams |
79 | 81 | * @author Sam Brannen |
80 | 82 | */ |
81 | | -public final class XmlBeanFactoryTests { |
| 83 | +public class XmlBeanFactoryTests { |
82 | 84 |
|
83 | 85 | private static final Class<?> CLASS = XmlBeanFactoryTests.class; |
84 | 86 | private static final String CLASSNAME = CLASS.getSimpleName(); |
@@ -1610,6 +1612,14 @@ public void testStringConstructorArrayNoTypeNonLenient() { |
1610 | 1612 | assertEquals(0, ((String[]) bean.array).length); |
1611 | 1613 | } |
1612 | 1614 |
|
| 1615 | + @Test @Ignore // TODO: SPR-13987 |
| 1616 | + public void testConstructorWithUnresolvableParameterName() { |
| 1617 | + DefaultListableBeanFactory xbf = new DefaultListableBeanFactory(); |
| 1618 | + new XmlBeanDefinitionReader(xbf).loadBeanDefinitions(CONSTRUCTOR_ARG_CONTEXT); |
| 1619 | + AtomicInteger bean = (AtomicInteger) xbf.getBean("constructorUnresolvableName"); |
| 1620 | + assertEquals(1, bean.get()); |
| 1621 | + } |
| 1622 | + |
1613 | 1623 | @Test |
1614 | 1624 | public void testWithDuplicateName() throws Exception { |
1615 | 1625 | DefaultListableBeanFactory xbf = new DefaultListableBeanFactory(); |
|
0 commit comments