RESOLVED - issue BATCH-1058: PlaceholderTargetSource doesn't always replace all placeholders

This commit is contained in:
dsyer
2009-02-05 09:02:01 +00:00
parent ed60703fdf
commit ef4dba7590
3 changed files with 25 additions and 4 deletions

View File

@@ -34,6 +34,10 @@ public class PlaceholderTargetSourceTests extends ContextFactorySupport {
@Qualifier("withInteger")
private PlaceholderTargetSource withInteger;
@Autowired
@Qualifier("withMultiple")
private PlaceholderTargetSource withMultiple;
@Autowired
@Qualifier("withDate")
private PlaceholderTargetSource withDate;
@@ -144,6 +148,12 @@ public class PlaceholderTargetSourceTests extends ContextFactorySupport {
assertEquals("bar-4321", target.getName());
}
@Test
public void testGetMultiple() {
Node target = (Node) withMultiple.getTarget();
assertEquals("bar-4321-4321", target.getName());
}
@Test
public void testGetDate() {
Node target = (Node) withDate.getTarget();