1   /*
2    * $Id: MuleXmlConfigBuilderSplitComponentsTestCase.java 7976 2007-08-21 14:26:13Z dirk.olmes $
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.test.config;
12  
13  import org.mule.MuleManager;
14  import org.mule.tck.FunctionalTestCase;
15  import org.mule.umo.model.UMOModel;
16  
17  /**
18   * Test for MULE-858
19   */
20  public class MuleXmlConfigBuilderSplitComponentsTestCase extends FunctionalTestCase
21  {
22  
23      public MuleXmlConfigBuilderSplitComponentsTestCase()
24      {
25          super();
26          setDisposeManagerPerSuite(true);
27      }
28  
29      public String getConfigResources()
30      {
31          return "split-components-1.xml, split-components-2.xml, split-components-3.xml";
32      }
33  
34      /**
35       * Make sure all the components from all the config files have been created.
36       */
37      public void testSplitComponentsConfig() throws Exception
38      {
39          UMOModel model = MuleManager.getInstance().lookupModel("main");
40          assertNotNull(model);
41          assertNotNull(model.getComponent("Component1"));
42          assertNotNull(model.getComponent("Component2"));
43          assertNotNull(model.getComponent("Component3"));
44          assertNotNull(model.getComponent("Component4"));
45          assertNotNull(model.getComponent("Component5"));
46      }
47  }