1   /*
2    * $Id: SpringContainerContextTestCase.java 3765 2006-10-31 19:38:26Z holger $
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.extras.spring;
12  
13  import org.mule.umo.manager.UMOContainerContext;
14  
15  
16  /**
17   * Tests the Spring container with more than one config file.
18   */
19  public class SpringContainerContextMultipleConfigsTestCase extends SpringContainerContextTestCase
20  {
21      public String getConfigResources()
22      {
23          return "test-application-context.xml,test-application-context-2.xml";
24      }
25  
26      public void testSecondConfig() throws Exception
27      {
28          UMOContainerContext container = getContainerContext();
29          container.initialise();
30          assertNotNull(container);
31  
32          Object result = container.getComponent("apple2");
33          assertNotNull("Component should exist in container", result);
34      }
35  }