[jboss-cvs] JBossRemoting/src/tests/org/jboss/test/remoting/transport/bisocket/ssl ...
Ron Sigal
ron_sigal at yahoo.com
Tue Dec 19 01:26:15 EST 2006
User: rsigal
Date: 06/12/19 01:26:15
Added: src/tests/org/jboss/test/remoting/transport/bisocket/ssl
Tag: remoting_2_x keystore truststore
SSLBisocketTestCase.java
SSLBisocketInvokerConstants.java
Log:
JBREM-650: Added unit tests for sslbisocket transport.
Revision Changes Path
No revision
No revision
1.1.2.1 +57 -0 JBossRemoting/src/tests/org/jboss/test/remoting/transport/bisocket/ssl/Attic/keystore
<<Binary file>>
1.1.2.1 +34 -0 JBossRemoting/src/tests/org/jboss/test/remoting/transport/bisocket/ssl/Attic/truststore
<<Binary file>>
1.1.2.1 +61 -0 JBossRemoting/src/tests/org/jboss/test/remoting/transport/bisocket/ssl/Attic/SSLBisocketTestCase.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: SSLBisocketTestCase.java
===================================================================
RCS file: SSLBisocketTestCase.java
diff -N SSLBisocketTestCase.java
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ SSLBisocketTestCase.java 19 Dec 2006 06:26:15 -0000 1.1.2.1
@@ -0,0 +1,61 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2005, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.remoting.transport.bisocket.ssl;
+
+import java.util.Map;
+
+import org.jboss.remoting.security.SSLSocketBuilder;
+import org.jboss.test.remoting.transport.bisocket.BisocketTestCase;
+
+
+/**
+ * @author <a href="ron.sigal at jboss.com">Ron Sigal</a>
+ * @version $Revision: 1.1.2.1 $
+ * <p>
+ * Copyright Dec 15, 2006
+ * </p>
+ */
+public class SSLBisocketTestCase extends BisocketTestCase
+{
+ protected String getTransport()
+ {
+ return "sslbisocket";
+ }
+
+
+ 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");
+ }
+
+
+ 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");
+ }
+}
\ No newline at end of file
1.1.2.1 +32 -0 JBossRemoting/src/tests/org/jboss/test/remoting/transport/bisocket/ssl/Attic/SSLBisocketInvokerConstants.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: SSLBisocketInvokerConstants.java
===================================================================
RCS file: SSLBisocketInvokerConstants.java
diff -N SSLBisocketInvokerConstants.java
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ SSLBisocketInvokerConstants.java 19 Dec 2006 06:26:15 -0000 1.1.2.1
@@ -0,0 +1,32 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2005, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+
+package org.jboss.test.remoting.transport.bisocket.ssl;
+
+/**
+ * @author <a href="mailto:tom.elrod at jboss.com">Tom Elrod</a>
+ */
+public interface SSLBisocketInvokerConstants
+{
+ int bisocketPort = 8091;
+ int bisocketCallbackPort = 8092;
+}
\ No newline at end of file
More information about the jboss-cvs-commits
mailing list