RESOLVED - issue BATCH-1397: Late binding only happens once per ApplicationContext if expression is in substring
http://jira.springframework.org/browse/BATCH-1397
This commit is contained in:
@@ -53,6 +53,10 @@ public class MultipleContextPlaceholderTargetSourceTests {
|
||||
@Qualifier("simple")
|
||||
private TestBean simple;
|
||||
|
||||
@Autowired
|
||||
@Qualifier("nested")
|
||||
private TestBean nested;
|
||||
|
||||
@Autowired
|
||||
@Qualifier("list")
|
||||
private TestBean list;
|
||||
@@ -88,6 +92,17 @@ public class MultipleContextPlaceholderTargetSourceTests {
|
||||
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testMultipleNestedValueFromProperties() throws Exception {
|
||||
|
||||
for (int i = 0; i < 4; i++) {
|
||||
final String value = "bar" + i;
|
||||
attributes = Collections.singletonMap("foo", value);
|
||||
assertEquals("foo-bar" + i, nested.getName());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testMultipleValueInList() throws Exception {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user