1
2
3
4
5
6
7 package org.mule.config.spring.parsers;
8
9 import org.mule.config.spring.parsers.beans.OrphanBean;
10
11 import java.util.Collection;
12
13 import org.junit.Test;
14
15 import static org.junit.Assert.assertEquals;
16
17 public class BindingCollectionTestCase extends AbstractNamespaceTestCase
18 {
19
20 @Override
21 protected String getConfigResources()
22 {
23 return "org/mule/config/spring/parsers/nested-collection-test.xml";
24 }
25
26 @Test
27 public void testAll()
28 {
29 OrphanBean orphan = (OrphanBean) assertBeanExists("orphan1", OrphanBean.class);
30 Collection kids = (Collection) assertContentExists(orphan.getKids(), Collection.class);
31 assertEquals(5, kids.size());
32 }
33
34 }