View Javadoc

1   /*
2    * $Id: VmToAxisProxyTestCase.java 20321 2010-11-24 15:21:24Z dfeist $
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.transport.soap.axis;
12  
13  import org.mule.api.MuleMessage;
14  import org.mule.module.client.MuleClient;
15  import org.mule.tck.DynamicPortTestCase;
16  
17  public class VmToAxisProxyTestCase extends DynamicPortTestCase
18  {
19  
20      protected String getConfigResources()
21      {
22          return "vm-to-axis-proxy-mule-config.xml";
23      }
24  
25      public void testWSProxy() throws Exception
26      {
27          if (isOffline("org.mule.transport.soap.axis.VmToAxisProxyTestCase.testWSProxy()"))
28          {
29              return;
30          }
31  
32          MuleClient client = new MuleClient(muleContext);
33          MuleMessage result = client.send("vm://proxy", "ibm", null);
34          assertNotNull(result);
35      }
36  
37      @Override
38      protected int getNumPortsToFind()
39      {
40          return 1;
41      }
42  
43  }