1
2
3
4
5
6
7
8
9
10
11 package org.mule.extras.spring;
12
13 import org.mule.umo.manager.UMOContainerContext;
14
15
16
17
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 }