1   /*
2    * $Id: NestedCollectionTestCase.java 8848 2007-10-04 22:52:30Z acooke $
3    * --------------------------------------------------------------------------------------
4    * Copyright (c) MuleSource, Inc.  All rights reserved.  http://www.mulesource.com
5    *
6    * The software in this package is published under the terms of the CPAL v1.0
7    * license, a copy of which has been included with this distribution in the
8    * LICENSE.txt file.
9    */
10  
11  package org.mule.config.spring.parsers;
12  
13  import org.mule.config.spring.parsers.beans.OrphanBean;
14  
15  import java.util.Collection;
16  
17  public class NestedCollectionTestCase extends AbstractNamespaceTestCase
18  {
19  
20      protected String getConfigResources()
21      {
22          return "org/mule/config/spring/parsers/nested-collection-test.xml";
23      }
24  
25      public void testAll()
26      {
27          OrphanBean orphan = (OrphanBean) assertBeanExists("orphan1", OrphanBean.class);
28          Collection kids = (Collection) assertContentExists(orphan.getKids(), Collection.class);
29          assertEquals(5, kids.size());
30      }
31  
32  }