From jboss-remoting-commits at lists.jboss.org Thu Aug 20 10:57:27 2009 Content-Type: multipart/mixed; boundary="===============3445993826923209955==" MIME-Version: 1.0 From: jboss-remoting-commits at lists.jboss.org To: jboss-remoting-commits at lists.jboss.org Subject: [jboss-remoting-commits] JBoss Remoting SVN: r5384 - in remoting2/branches/2.x/src/tests/org/jboss/test/remoting/transport/http/ssl: marshal and 1 other directory. Date: Thu, 20 Aug 2009 10:57:27 -0400 Message-ID: <200908201457.n7KEvRiK024933@svn01.web.mwc.hst.phx2.redhat.com> --===============3445993826923209955== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: ron.sigal(a)jboss.com Date: 2009-08-20 10:57:27 -0400 (Thu, 20 Aug 2009) New Revision: 5384 Added: remoting2/branches/2.x/src/tests/org/jboss/test/remoting/transport/http/= ssl/marshal/ remoting2/branches/2.x/src/tests/org/jboss/test/remoting/transport/http/= ssl/marshal/HttpsContentTypeTestCase.java Log: JBREM-1145: New unit tests. Added: remoting2/branches/2.x/src/tests/org/jboss/test/remoting/transport/h= ttp/ssl/marshal/HttpsContentTypeTestCase.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- remoting2/branches/2.x/src/tests/org/jboss/test/remoting/transport/http= /ssl/marshal/HttpsContentTypeTestCase.java (rev 0) +++ remoting2/branches/2.x/src/tests/org/jboss/test/remoting/transport/http= /ssl/marshal/HttpsContentTypeTestCase.java 2009-08-20 14:57:27 UTC (rev 538= 4) @@ -0,0 +1,69 @@ +/* + * JBoss, Home of Professional Open Source. + * Copyright 2009, Red Hat Middleware LLC, and individual contributors + * as indicated by the @author tags. See the copyright.txt file 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.marshal; + +import java.util.Map; + +import org.apache.log4j.Logger; +import org.jboss.remoting.transport.http.ssl.HTTPSClientInvoker; +import org.jboss.test.remoting.transport.http.marshal.HttpContentTypeTestC= ase; + +/* + * Unit tests for JBREM-1145 + * = + * @author Ron Sigal + * @version = + *

+ * Copyright Aug 19, 2009 + *

+ */ +public class HttpsContentTypeTestCase extends HttpContentTypeTestCase +{ + private static Logger log =3D Logger.getLogger(HttpsContentTypeTestCase= .class); + = + public void setUp() throws Exception + { + if (firstTime) + { + String keyStoreFilePath =3D this.getClass().getResource("../.keys= tore").getFile(); + log.info("keystore: " + keyStoreFilePath); + System.setProperty("javax.net.ssl.keyStore", keyStoreFilePath); + System.setProperty("javax.net.ssl.keyStorePassword", "unit-tests-= server"); + String trustStoreFilePath =3D this.getClass().getResource("../.tr= uststore").getFile(); + log.info("truststore: " + trustStoreFilePath); + System.setProperty("javax.net.ssl.trustStore", trustStoreFilePath= ); + System.setProperty("javax.net.ssl.trustStorePassword", "unit-test= s-client"); + } + super.setUp(); + } + = + protected String getTransport() + { + return "https"; + } + = + protected void addExtraClientConfig(Map config) + { + config.put(HTTPSClientInvoker.IGNORE_HTTPS_HOST, "true"); + } +} + --===============3445993826923209955==--