1   /*
2    * $Id: CxfBasicTestCase.java 11405 2008-03-18 00:13:00Z 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.transport.cxf;
12  
13  import org.mule.api.MuleMessage;
14  import org.mule.module.client.MuleClient;
15  import org.mule.tck.FunctionalTestCase;
16  
17  public class ProtocolTestCase extends FunctionalTestCase
18  {
19      
20      public void testEchoService() throws Exception
21      {
22          MuleClient client = new MuleClient();
23          MuleMessage result = client.send("cxf:http://localhost:63081/services/Echo?method=echo", "Hello!",
24              null);
25          assertEquals("Hello Transformed!", result.getPayload());
26      }
27  
28      @Override
29      protected String getConfigResources()
30      {
31          return "protocol-conf.xml";
32      }
33  
34  
35  }