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 return "test-xml-mule-config.xml, test-application-context.xml, test-application-context-2.xml";
26 }
27
28 protected ConfigurationBuilder getBuilder() throws Exception
29 {
30 return new SpringConfigurationBuilder();
31 }
32
33 public void testConnectorBean()
34 {
35 UMOConnector c = MuleManager.getInstance().lookupConnector("dummyConnector");
36 assertNotNull(c);
37 assertTrue(c instanceof TestConnector);
38 }
39
40 }
41
42