1   /*
2    * $Id$
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.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   * Tests a Mule config together with Spring configs in the same list of resources.
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