1   package org.codehaus.xfire.plexus.config;
2   
3   import org.codehaus.xfire.plexus.PlexusXFireTest;
4   import org.codehaus.xfire.service.Service;
5   
6   /***
7    * @author <a href="mailto:dan@envoisolutions.com">Dan Diephouse</a>
8    * @since Sep 20, 2004
9    */
10  public class ConfigurationTest 
11      extends PlexusXFireTest
12  {
13      public void setUp()
14          throws Exception
15      {
16          System.setProperty("xfire.config", "/org/codehaus/xfire/plexus/config/services.xml");
17          super.setUp();
18      }
19      
20      public void testRegister()
21          throws Exception
22      {
23          Service s = getServiceRegistry().getService("Echo");
24          
25          assertNotNull( s ); 
26          
27          Service js = getServiceRegistry().getService("Echo2");
28          
29          assertNotNull( js ); 
30          
31          Service xs = getServiceRegistry().getService("Echo3");
32          
33          assertNotNull( xs );
34          assertNotNull( xs.getServiceHandler() );
35          assertNotNull( xs.getWSDL() );
36      }
37  }