[jboss-cvs] JBossRemoting/src/tests/org/jboss/test/remoting/transport/http/ssl/shutdown ...
Ron Sigal
ron_sigal at yahoo.com
Mon Jan 22 01:43:51 EST 2007
User: rsigal
Date: 07/01/22 01:43:51
Added: src/tests/org/jboss/test/remoting/transport/http/ssl/shutdown
Tag: remoting_2_x HTTPSShutdownTestCase.java
Log:
JBREM-674: Adding unit tests (one per transport) to verify that a Remoting application will shut down properly without any threads hanging it up.
Revision Changes Path
No revision
No revision
1.1.2.1 +61 -0 JBossRemoting/src/tests/org/jboss/test/remoting/transport/http/ssl/shutdown/Attic/HTTPSShutdownTestCase.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: HTTPSShutdownTestCase.java
===================================================================
RCS file: HTTPSShutdownTestCase.java
diff -N HTTPSShutdownTestCase.java
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ HTTPSShutdownTestCase.java 22 Jan 2007 06:43:51 -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.http.ssl.shutdown;
+
+import org.jboss.remoting.transport.bisocket.Bisocket;
+import org.jboss.remoting.transport.http.ssl.HTTPSClientInvoker;
+import org.jboss.test.remoting.shutdown.ShutdownTestParent;
+
+/**
+ * @author <a href="ron.sigal at jboss.com">Ron Sigal</a>
+ * @version $Revision: 1.1.2.1 $
+ * <p>
+ * Copyright Jan 20, 2007
+ * </p>
+ */
+public class HTTPSShutdownTestCase extends ShutdownTestParent
+{
+ protected String getTransport()
+ {
+ return "https";
+ }
+
+ protected String getJVMArguments()
+ {
+ String args = "";
+ String keyStoreFilePath = getClass().getResource("../.keystore").getFile();
+ String trustStoreFilePath = getClass().getResource("../.truststore").getFile();
+ String log4jFilePath = getClass().getResource("../../../../shutdown/log4j.xml").getFile();
+ System.out.println("log4jFilePath: " + log4jFilePath);
+ args += "-Djavax.net.ssl.keyStore=" + keyStoreFilePath + " ";
+ args += "-Djavax.net.ssl.keyStorePassword=unit-tests-server ";
+ args += "-Djavax.net.ssl.trustStore=" + trustStoreFilePath + " ";
+ args += "-Djavax.net.ssl.trustStorePassword=unit-tests-client ";
+ args += "-Dlog4j.configuration=file:" + log4jFilePath;
+ return args;
+ }
+
+ protected String getClientArgs()
+ {
+ return HTTPSClientInvoker.IGNORE_HTTPS_HOST + "=true&";
+ }
+}
More information about the jboss-cvs-commits
mailing list