[jboss-cvs] JBossRemoting/src/tests/org/jboss/test/remoting/transport/http/ssl/clientaddress ...
Ron Sigal
ron_sigal at yahoo.com
Tue Nov 20 04:21:20 EST 2007
User: rsigal
Date: 07/11/20 04:21:20
Added: src/tests/org/jboss/test/remoting/transport/http/ssl/clientaddress
Tag: remoting_2_x HttpsClientAddressTestCase.java
Log:
JBREM-758: New per transport unit tests.
Revision Changes Path
No revision
No revision
1.1.2.1 +32 -0 JBossRemoting/src/tests/org/jboss/test/remoting/transport/http/ssl/clientaddress/Attic/HttpsClientAddressTestCase.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: HttpsClientAddressTestCase.java
===================================================================
RCS file: HttpsClientAddressTestCase.java
diff -N HttpsClientAddressTestCase.java
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ HttpsClientAddressTestCase.java 20 Nov 2007 09:21:20 -0000 1.1.2.1
@@ -0,0 +1,32 @@
+package org.jboss.test.remoting.transport.http.ssl.clientaddress;
+
+import java.util.Map;
+
+import org.jboss.remoting.security.SSLSocketBuilder;
+import org.jboss.remoting.transport.http.ssl.HTTPSClientInvoker;
+import org.jboss.test.remoting.clientaddress.ClientAddressTestParent;
+
+public class HttpsClientAddressTestCase extends ClientAddressTestParent
+{
+ protected String getTransport()
+ {
+ return "https";
+ }
+
+ protected void addExtraServerConfig(Map config)
+ {
+ config.put(SSLSocketBuilder.REMOTING_KEY_STORE_TYPE, "JKS");
+ String keyStoreFilePath = this.getClass().getResource("../.keystore").getFile();
+ config.put(SSLSocketBuilder.REMOTING_KEY_STORE_FILE_PATH, keyStoreFilePath);
+ config.put(SSLSocketBuilder.REMOTING_KEY_STORE_PASSWORD, "unit-tests-server");
+ }
+
+ protected void addExtraClientConfig(Map config)
+ {
+ config.put(SSLSocketBuilder.REMOTING_TRUST_STORE_TYPE, "JKS");
+ String trustStoreFilePath = this.getClass().getResource("../.truststore").getFile();
+ config.put(SSLSocketBuilder.REMOTING_TRUST_STORE_FILE_PATH, trustStoreFilePath);
+ config.put(SSLSocketBuilder.REMOTING_TRUST_STORE_PASSWORD, "unit-tests-client");
+ config.put(HTTPSClientInvoker.IGNORE_HTTPS_HOST, "true");
+ }
+}
More information about the jboss-cvs-commits
mailing list