View Javadoc
1   /*
2    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
3    * The software in this package is published under the terms of the CPAL v1.0
4    * license, a copy of which has been included with this distribution in the
5    * LICENSE.txt file.
6    */
7   package org.mule.config.spring.parsers;
8   
9   import org.mule.config.spring.parsers.beans.ChildBean;
10  import org.mule.config.spring.parsers.beans.OrphanBean;
11  
12  import org.junit.Test;
13  
14  public class NamedDynamicTestCase extends AbstractNamespaceTestCase
15  {
16  
17      @Override
18      protected String getConfigResources()
19      {
20          return "org/mule/config/spring/parsers/named-dynamic-test.xml";
21      }
22  
23      @Test
24      public void testDynamicNamed1()
25      {
26          OrphanBean orphan1 = (OrphanBean) assertBeanExists("orphan1", OrphanBean.class);
27          assertBeanPopulated(orphan1, "orphan1");
28          ChildBean child1 = (ChildBean) assertContentExists(orphan1.getChild(), ChildBean.class);
29          assertBeanPopulated(child1, "child1");
30      }
31  
32  }