1
2
3
4
5
6
7
8
9
10
11 package org.mule.extras.spring;
12
13 import org.mule.umo.manager.ObjectNotFoundException;
14 import org.mule.umo.manager.UMOContainerContext;
15
16
17
18
19
20
21 public class SpringContainerContextMultipleConfigsViaImportsTestCase extends SpringContainerContextTestCase
22 {
23 public String getConfigResources()
24 {
25 return "spring-imports.xml";
26 }
27
28 public void testSecondConfig() throws Exception
29 {
30 UMOContainerContext container = getContainerContext();
31 container.initialise();
32 assertNotNull(container);
33
34 try
35 {
36 Object result = container.getComponent("apple2");
37 assertNotNull("Component should exist in container", result);
38 }
39 catch (ObjectNotFoundException e)
40 {
41 fail("Component should exist in the container");
42 }
43 }
44 }