From jboss-remoting-commits at lists.jboss.org Fri Feb 19 13:27:43 2010 Content-Type: multipart/mixed; boundary="===============4920729464021901380==" 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: r5734 - remoting2/branches/2.2/src/tests/org/jboss/test/remoting/transport/bisocket/ssl/timeout. Date: Fri, 19 Feb 2010 13:27:43 -0500 Message-ID: <201002191827.o1JIRh41010850@svn01.web.mwc.hst.phx2.redhat.com> --===============4920729464021901380== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: ron.sigal(a)jboss.com Date: 2010-02-19 13:27:42 -0500 (Fri, 19 Feb 2010) New Revision: 5734 Added: remoting2/branches/2.2/src/tests/org/jboss/test/remoting/transport/bisoc= ket/ssl/timeout/SSLBisocketDefaultTimeoutTestCase.java Log: JBREM-1188: New unit test. Added: remoting2/branches/2.2/src/tests/org/jboss/test/remoting/transport/b= isocket/ssl/timeout/SSLBisocketDefaultTimeoutTestCase.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.2/src/tests/org/jboss/test/remoting/transport/biso= cket/ssl/timeout/SSLBisocketDefaultTimeoutTestCase.java = (rev 0) +++ remoting2/branches/2.2/src/tests/org/jboss/test/remoting/transport/biso= cket/ssl/timeout/SSLBisocketDefaultTimeoutTestCase.java 2010-02-19 18:27:42= UTC (rev 5734) @@ -0,0 +1,96 @@ +/* + * JBoss, Home of Professional Open Source. + * Copyright 2010, 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.bisocket.ssl.timeout; + +import java.io.IOException; +import java.util.Map; + +import org.apache.log4j.Logger; +import org.jboss.remoting.InvokerLocator; +import org.jboss.remoting.transport.ClientFactory; +import org.jboss.remoting.transport.ClientInvoker; +import org.jboss.remoting.transport.socket.ServerAddress; +import org.jboss.remoting.transport.sslbisocket.SSLBisocketClientInvoker; +import org.jboss.test.remoting.transport.socket.timeout.SocketDefaultTimeo= utTestCase; + + +/** + * Unit tests for JBREM-1188. + * = + * @author Ron Sigal + * @version $Revision: 1.1 $ + *
+ * Copyright Feb 16, 2010 + */ +public class SSLBisocketDefaultTimeoutTestCase extends SocketDefaultTimeou= tTestCase +{ + private static Logger log =3D Logger.getLogger(SSLBisocketDefaultTimeou= tTestCase.class); = + = + = + protected Class getClientFactoryClass() + { + return TestSSLBisocketClientFactory.class; + } + = + = + protected Class getClientInvokerClass() + { + return TestSSLBisocketClientInvoker.class; + } + = + = + public static class TestSSLBisocketClientFactory implements ClientFacto= ry + { + public ClientInvoker createClientInvoker(InvokerLocator locator, Map= config) throws IOException + { + ClientInvoker clientInvoker =3D new TestSSLBisocketClientInvoker(= locator, config); + log.info("TestClientFaotory.createClientInvoker() returning " + c= lientInvoker); + return clientInvoker; + } + public boolean supportsSSL() + { + return true; + } = + } + = + = + public static class TestSSLBisocketClientInvoker extends SSLBisocketCli= entInvoker + { + public TestSSLBisocketClientInvoker(InvokerLocator locator, Map conf= iguration) throws IOException + { + super(locator, configuration); + } + public TestSSLBisocketClientInvoker(InvokerLocator locator) throws I= OException + { + super(locator); + } + public ServerAddress getServerAddress() + { + return address; + } + public String toString() + { + return "TestSSLBisocketClientInvoker"; + } + } +} \ No newline at end of file --===============4920729464021901380==--