View Javadoc

1   /*
2    * $Id: StaxFeatureTestCase.java 19191 2010-08-25 21:05:23Z tcarlson $
3    * --------------------------------------------------------------------------------------
4    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.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.module.cxf;
12  
13  import org.mule.module.cxf.CxfConfiguration;
14  import org.mule.module.cxf.CxfConstants;
15  import org.mule.tck.FunctionalTestCase;
16  
17  import org.apache.cxf.Bus;
18  
19  public class StaxFeatureTestCase extends FunctionalTestCase
20  {
21      public void testEchoService() throws Exception
22      {
23          CxfConfiguration cxfCon = (CxfConfiguration)muleContext.getRegistry().lookupObject(CxfConstants.DEFAULT_CXF_CONFIGURATION);
24          assertNotNull(cxfCon);
25  
26          Bus cxfBus = cxfCon.getCxfBus();
27          
28          // ensure that our interceptor is there
29  //        assertEquals(2, cxfBus.getInInterceptors().size());
30  //        
31  //        MuleClient client = new MuleClient();
32  //        MuleMessage result = client.send("cxf:http://localhost:63081/services/Echo?method=echo", "Hello!", null);
33  //        assertEquals("Hello!", result.getPayload());
34      }
35  
36      @Override
37      protected String getConfigResources() 
38      {
39          return "stax-feature-conf.xml";
40      }
41  }
42