View Javadoc

1   /*
2    * $Id: WSRMTest.java 20389 2010-11-30 08:30:22Z dirk.olmes $
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.wsrm;
12  
13  import org.mule.DefaultMuleMessage;
14  import org.mule.api.MuleMessage;
15  import org.mule.api.client.MuleClient;
16  import org.mule.client.DefaultLocalMuleClient;
17  import org.mule.tck.FunctionalTestCase;
18  
19  public class WSRMTest extends FunctionalTestCase
20  {
21      public void testWSRM() throws Exception
22      {
23          MuleClient client = new DefaultLocalMuleClient(muleContext);
24          MuleMessage result = client.send("clientEndpoint", new DefaultMuleMessage("test", muleContext));        
25          System.out.println(result);
26      }
27      
28      @Override
29      protected String getConfigResources()
30      {
31          return "org/mule/module/cxf/wsrm/wsrm-conf.xml";
32      }
33  
34  }
35  
36