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 OrphanSimpleTestCase extends AbstractNamespaceTestCase
15  {
16  
17      @Override
18      protected String getConfigResources()
19      {
20          return "org/mule/config/spring/parsers/orphan-simple-test.xml";
21      }
22  
23      @Test
24      public void testOrphan2()
25      {
26          OrphanBean orphan2 = (OrphanBean) assertBeanExists("orphan2", OrphanBean.class);
27          assertBeanPopulated(orphan2, "orphan2");
28          ChildBean child2 = (ChildBean) assertContentExists(orphan2.getChild(), ChildBean.class);
29          assertBeanPopulated(child2, "child2");
30      }
31  
32  }