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

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


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

  Added:       src/tests/org/jboss/test/remoting/transport/bisocket/ssl/config 
                        FactoryConfigTestCase.java
  Log:
  JBREM-650: Unit tests for sslbisocket transport.
  
  Revision  Changes    Path
  1.2       +57 -0     JBossRemoting/src/tests/org/jboss/test/remoting/transport/bisocket/ssl/config/FactoryConfigTestCase.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: FactoryConfigTestCase.java
  ===================================================================
  RCS file: FactoryConfigTestCase.java
  diff -N FactoryConfigTestCase.java
  --- /dev/null	1 Jan 1970 00:00:00 -0000
  +++ FactoryConfigTestCase.java	27 Dec 2006 06:14:54 -0000	1.2
  @@ -0,0 +1,57 @@
  +/*
  + * JBoss, Home of Professional Open Source
  + * Copyright 2006, 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.config;
  +
  +import java.util.Map;
  +
  +import org.jboss.remoting.security.SSLSocketBuilder;
  +import org.jboss.remoting.transport.bisocket.Bisocket;
  +import org.jboss.test.remoting.transport.config.FactoryConfigTestCaseSSLParent;
  +
  +
  +/**
  + * 
  + * @author <a href="mailto:ron.sigal at jboss.com">Ron Sigal</a>
  + * <p>
  + * Copyright (c) May 20, 2006
  + * </p>
  + */
  +public class FactoryConfigTestCase extends FactoryConfigTestCaseSSLParent
  +{
  +   protected String getTransport()
  +   {
  +      return "sslbisocket";
  +   }
  +   
  +   protected void addExtraCallbackConfig(Map config)
  +   {
  +      config.put(Bisocket.IS_CALLBACK_SERVER, "true");
  +      
  +      // Callback server invoker needs to create a socket factory to contact
  +      // secondary server socket on server side.
  +      config.put(SSLSocketBuilder.REMOTING_SOCKET_USE_CLIENT_MODE, "true");
  +      config.put(SSLSocketBuilder.REMOTING_TRUST_STORE_TYPE, "JKS");
  +      String trustStoreFilePath = getTruststoreFilePath();
  +      config.put(SSLSocketBuilder.REMOTING_TRUST_STORE_FILE_PATH, trustStoreFilePath);
  +      config.put(SSLSocketBuilder.REMOTING_TRUST_STORE_PASSWORD, "unit-tests-client");
  +   }
  +}
  
  
  



More information about the jboss-cvs-commits mailing list