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

« back to all changes in this revision

Viewing changes to src/tests/org/jboss/test/remoting/transport/bisocket/ssl/clientaddress/SSLBisocketClientAddressTestCase.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.bisocket.ssl.clientaddress;
 
2
 
 
3
import java.util.Map;
 
4
 
 
5
import org.jboss.remoting.security.SSLSocketBuilder;
 
6
import org.jboss.remoting.transport.bisocket.Bisocket;
 
7
import org.jboss.test.remoting.clientaddress.ClientAddressTestParent;
 
8
 
 
9
public class SSLBisocketClientAddressTestCase extends ClientAddressTestParent
 
10
{
 
11
   protected String getTransport()
 
12
   {
 
13
      return "sslbisocket";
 
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
   }
 
31
   
 
32
   protected void addExtraCallbackConfig(Map config)
 
33
   {
 
34
      addExtraClientConfig(config);
 
35
      config.put(Bisocket.IS_CALLBACK_SERVER, "true");
 
36
   }
 
37
}