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