1   /*
2    * $Id: XFireAddClientServiceInterfaceTestCase.java 7976 2007-08-21 14:26:13Z dirk.olmes $
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.providers.soap.xfire;
12  
13  import org.mule.MuleManager;
14  import org.mule.impl.MuleDescriptor;
15  import org.mule.tck.AbstractMuleTestCase;
16  
17  import java.util.ArrayList;
18  import java.util.List;
19  
20  public class XFireAddClientServiceInterfaceTestCase extends AbstractMuleTestCase
21  {
22      protected MuleDescriptor descriptor;
23  
24      protected XFireConnector connector;
25  
26      protected void doSetUp() throws Exception
27      {
28          getManager(true);
29          MuleManager.getInstance().start();
30          connector = new XFireConnector();
31          List clientServices = new ArrayList();
32          clientServices.add("org.mule.components.simple.EchoService");
33          connector.setClientServices(clientServices);
34          connector.initialise();
35      }
36  
37      protected void doTearDown() throws Exception
38      {
39          if (!connector.isDisposed())
40          {
41              connector.dispose();
42          }
43      }
44  
45      public void testXfireAddClientServiceInterface() throws Exception
46      {
47          assertNotNull(connector.getXfire().getServiceRegistry().getService("EchoService"));
48      }
49  }