1
2
3
4
5
6
7
8
9
10
11 package org.mule.extras.spring.config;
12
13 import org.mule.MuleManager;
14 import org.mule.config.ConfigurationBuilder;
15 import org.mule.tck.testmodels.mule.TestConnector;
16 import org.mule.umo.provider.UMOConnector;
17
18
19
20
21 public class MuleConfigWithSpringConfigsTestCase extends MultipleSpringContextsTestCase
22 {
23 public String getConfigResources()
24 {
25
26 return "test-xml-mule-config.xml, test-application-context.xml, test-application-context-2.xml";
27 }
28
29 protected ConfigurationBuilder getBuilder() throws Exception
30 {
31 return new SpringConfigurationBuilder();
32 }
33
34 public void testConnectorBean()
35 {
36 UMOConnector c = MuleManager.getInstance().lookupConnector("dummyConnector");
37 assertNotNull(c);
38 assertTrue(c instanceof TestConnector);
39 }
40
41 }
42
43