[jboss-cvs] JBossRemoting/src/tests/org/jboss/test/remoting/transport/bisocket/ssl/builder ...

Ron Sigal ron_sigal at yahoo.com
Wed Dec 27 01:14:53 EST 2006


  User: rsigal  
  Date: 06/12/27 01:14:53

  Added:       src/tests/org/jboss/test/remoting/transport/bisocket/ssl/builder   
                        SSLBisocketInvokerTestCase.java
                        SSLBisocketInvokerTestServer.java
                        SSLBisocketInvokerTestClient.java
  Log:
  JBREM-650: Unit tests for sslbisocket transport.
  
  Revision  Changes    Path
  1.2       +38 -0     JBossRemoting/src/tests/org/jboss/test/remoting/transport/bisocket/ssl/builder/SSLBisocketInvokerTestCase.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: SSLBisocketInvokerTestCase.java
  ===================================================================
  RCS file: SSLBisocketInvokerTestCase.java
  diff -N SSLBisocketInvokerTestCase.java
  --- /dev/null	1 Jan 1970 00:00:00 -0000
  +++ SSLBisocketInvokerTestCase.java	27 Dec 2006 06:14:53 -0000	1.2
  @@ -0,0 +1,38 @@
  +/*
  +* 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.builder;
  +
  +import org.jboss.jrunit.harness.TestDriver;
  +
  +/**
  + * @author <a href="mailto:tom.elrod at jboss.com">Tom Elrod</a>
  + * @author <a href="mailto:ron.sigal at jboss.com">Ron Sigal</a>
  + */
  +public class SSLBisocketInvokerTestCase extends TestDriver
  +{
  +   public void declareTestClasses()
  +   {
  +      addTestClasses(SSLBisocketInvokerTestClient.class.getName(),
  +                     1,
  +                     SSLBisocketInvokerTestServer.class.getName());
  +   }
  +}
  \ No newline at end of file
  
  
  
  1.2       +43 -0     JBossRemoting/src/tests/org/jboss/test/remoting/transport/bisocket/ssl/builder/SSLBisocketInvokerTestServer.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: SSLBisocketInvokerTestServer.java
  ===================================================================
  RCS file: SSLBisocketInvokerTestServer.java
  diff -N SSLBisocketInvokerTestServer.java
  --- /dev/null	1 Jan 1970 00:00:00 -0000
  +++ SSLBisocketInvokerTestServer.java	27 Dec 2006 06:14:53 -0000	1.2
  @@ -0,0 +1,43 @@
  +package org.jboss.test.remoting.transport.bisocket.ssl.builder;
  +
  +import org.jboss.test.remoting.transport.bisocket.ssl.SSLBisocketInvokerConstants;
  +import org.jboss.test.remoting.transport.socket.ssl.builder.SSLSocketInvokerTestServer;
  +
  +/**
  + * This is the server for the test case to verify can have push callbacks using ssl where
  + * the client mode is used for the client calling back on the callback server living within the
  + * client test instance.
  + *
  + * @author <a href="mailto:tom.elrod at jboss.com">Tom Elrod</a>
  + * @author <a href="mailto:ron.sigal at jboss.com">Ron Sigal</a>
  + */
  +public class SSLBisocketInvokerTestServer
  +   extends SSLSocketInvokerTestServer
  +   implements SSLBisocketInvokerConstants
  +{
  +
  +   public static void main(String[] args)
  +   {
  +      SSLBisocketInvokerTestServer server = new SSLBisocketInvokerTestServer();
  +      try
  +      {
  +         server.setUp();
  +
  +         Thread.sleep(600000);
  +      }
  +      catch (Exception e)
  +      {
  +         e.printStackTrace();
  +      }
  +   }
  +
  +   protected String getTransport()
  +   {
  +      return "sslbisocket";
  +   }
  +   
  +   protected int getPort()
  +   {
  +      return bisocketPort;
  +   }
  +}
  
  
  
  1.2       +28 -0     JBossRemoting/src/tests/org/jboss/test/remoting/transport/bisocket/ssl/builder/SSLBisocketInvokerTestClient.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: SSLBisocketInvokerTestClient.java
  ===================================================================
  RCS file: SSLBisocketInvokerTestClient.java
  diff -N SSLBisocketInvokerTestClient.java
  --- /dev/null	1 Jan 1970 00:00:00 -0000
  +++ SSLBisocketInvokerTestClient.java	27 Dec 2006 06:14:53 -0000	1.2
  @@ -0,0 +1,28 @@
  +package org.jboss.test.remoting.transport.bisocket.ssl.builder;
  +
  +import org.jboss.test.remoting.transport.bisocket.ssl.SSLBisocketInvokerConstants;
  +import org.jboss.test.remoting.transport.socket.ssl.builder.SSLSocketInvokerTestCase;
  +
  +/**
  + * This is the client for the test to make regular ssl based invocation to the server and
  + * have a ssl based callback server.  The special test in this case is want to have the callback
  + * client that lives on the server to be in client mode so that this client test only has to have
  + * a truststore locally, yet still use ssl.
  + *
  + * @author <a href="mailto:tom.elrod at jboss.com">Tom Elrod</a>
  + * @author <a href="mailto:ron.sigal at jboss.com">Ron Sigal</a>
  + */
  +public class SSLBisocketInvokerTestClient
  +   extends SSLSocketInvokerTestCase
  +   implements SSLBisocketInvokerConstants
  +{
  +   protected String getTransport()
  +   {
  +      return "sslbisocket";
  +   }
  +   
  +   protected int getPort()
  +   {
  +      return bisocketPort;
  +   }
  +}
  
  
  



More information about the jboss-cvs-commits mailing list