~ubuntu-branches/ubuntu/raring/libjboss-remoting-java/raring

« back to all changes in this revision

Viewing changes to tests/org/jboss/test/remoting/transport/http/ssl/clientaddress/HttpsClientAddressTestCase.java

  • Committer: Package Import Robot
  • Author(s): Torsten Werner
  • Date: 2011-09-09 14:01:03 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: package-import@ubuntu.com-20110909140103-hqokx61534tas9rg
Tags: 2.5.3.SP1-1
* Newer but not newest upstream release. Do not build samples.
* Change debian/watch to upstream's svn repo.
* Add patch to fix compile error caused by tomcat update.
  (Closes: #628303)
* Switch to source format 3.0.
* Switch to debhelper level 7.
* Remove useless Depends.
* Update Standards-Version: 3.9.2.
* Update README.source.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
package org.jboss.test.remoting.transport.http.ssl.clientaddress;
2
 
 
3
 
import java.util.Map;
4
 
 
5
 
import org.jboss.remoting.security.SSLSocketBuilder;
6
 
import org.jboss.remoting.transport.http.ssl.HTTPSClientInvoker;
7
 
import org.jboss.test.remoting.clientaddress.ClientAddressTestParent;
8
 
 
9
 
public class HttpsClientAddressTestCase extends ClientAddressTestParent
10
 
{
11
 
   protected String getTransport()
12
 
   {
13
 
      return "https";
14
 
   }
15
 
   
16
 
   protected void addExtraServerConfig(Map config)
17
 
   {
18
 
      config.put(SSLSocketBuilder.REMOTING_KEY_STORE_TYPE, "JKS");
19
 
      String keyStoreFilePath = this.getClass().getResource("../.keystore").getFile();
20
 
      config.put(SSLSocketBuilder.REMOTING_KEY_STORE_FILE_PATH, keyStoreFilePath);
21
 
      config.put(SSLSocketBuilder.REMOTING_KEY_STORE_PASSWORD, "unit-tests-server");
22
 
   }
23
 
   
24
 
   protected void addExtraClientConfig(Map config)
25
 
   {
26
 
      config.put(SSLSocketBuilder.REMOTING_TRUST_STORE_TYPE, "JKS");
27
 
      String trustStoreFilePath = this.getClass().getResource("../.truststore").getFile();
28
 
      config.put(SSLSocketBuilder.REMOTING_TRUST_STORE_FILE_PATH, trustStoreFilePath);
29
 
      config.put(SSLSocketBuilder.REMOTING_TRUST_STORE_PASSWORD, "unit-tests-client");
30
 
      config.put(HTTPSClientInvoker.IGNORE_HTTPS_HOST, "true");
31
 
   }
32
 
   
33
 
   protected void addExtraCallbackConfig(Map config)
34
 
   {
35
 
      addExtraClientConfig(config);
36
 
      config.put(SSLSocketBuilder.REMOTING_SERVER_SOCKET_USE_CLIENT_MODE, "true");
37
 
   }
38
 
}