1   /*
2    * $Id: SslFunctionalTestCase.java 7963 2007-08-21 08:53:15Z 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.providers.ssl;
12  
13  import org.mule.extras.client.MuleClient;
14  import org.mule.tck.FunctionalTestCase;
15  import org.mule.umo.UMOMessage;
16  
17  import java.util.HashMap;
18  import java.util.Map;
19  
20  public class SslFunctionalTestCase extends FunctionalTestCase {
21  
22      protected static String TEST_MESSAGE = "Test SSL Request";
23  
24      public SslFunctionalTestCase()
25      {
26          setDisposeManagerPerSuite(true);
27      }
28  
29      protected String getConfigResources()
30      {
31          return "ssl-functional-test.xml";
32      }
33  
34      public void testSend() throws Exception
35      {
36          MuleClient client = new MuleClient();
37          Map props = new HashMap();
38          UMOMessage result = client.send("clientEndpoint", TEST_MESSAGE, props);
39          assertEquals(TEST_MESSAGE + " Received", result.getPayloadAsString());
40      }
41      
42  }