CVS update: JGroups/tests/junit/org/jgroups/tests SharedTransportTest.java

"Bela Ban" <[email protected]> Thu, 16 Sep 2010 11:55:34 +0000
Newsgroups gmane.comp.java.javagroups.cvs
Message-ID <[email protected]>
  User: belaban 
  Date: 10/09/16 11:55:34

  Modified:    tests/junit/org/jgroups/tests SharedTransportTest.java
  Log:
  replaced ProtocolData with ProtocolConfiguration
  
  Revision  Changes    Path
  1.31      +5 -5      JGroups/tests/junit/org/jgroups/tests/SharedTransportTest.java
  
  Index: SharedTransportTest.java
  ===================================================================
  RCS file: /cvsroot/javagroups/JGroups/tests/junit/org/jgroups/tests/SharedTransportTest.java,v
  retrieving revision 1.30
  retrieving revision 1.31
  diff -u -r1.30 -r1.31
  --- SharedTransportTest.java	16 Sep 2010 07:42:13 -0000	1.30
  +++ SharedTransportTest.java	16 Sep 2010 11:55:34 -0000	1.31
  @@ -2,7 +2,7 @@
   
   import org.jgroups.*;
   import org.jgroups.conf.ConfiguratorFactory;
  -import org.jgroups.conf.ProtocolData;
  +import org.jgroups.conf.ProtocolConfiguration;
   import org.jgroups.conf.ProtocolStackConfigurator;
   import org.jgroups.protocols.BasicTCP;
   import org.jgroups.protocols.TCPPING;
  @@ -28,7 +28,7 @@
   /**
    * Tests which test the shared transport
    * @author Bela Ban
  - * @version $Id: SharedTransportTest.java,v 1.30 2010/09/16 07:42:13 belaban Exp $
  + * @version $Id: SharedTransportTest.java,v 1.31 2010/09/16 11:55:34 belaban Exp $
    */
   @Test(groups=Global.STACK_DEPENDENT,sequential=true)
   public class SharedTransportTest extends ChannelTestBase {
  @@ -476,9 +476,9 @@
   
       private JChannel createSharedChannel(String singleton_name) throws ChannelException {
           ProtocolStackConfigurator config=ConfiguratorFactory.getStackConfigurator(channel_conf);
  -        ProtocolData[] protocols=config.getProtocolStack();
  -        ProtocolData transport=protocols[0];
  -        transport.getParameters().put(Global.SINGLETON_NAME, singleton_name);
  +        List<ProtocolConfiguration> protocols=config.getProtocolStack();
  +        ProtocolConfiguration transport=protocols.get(0);
  +        transport.getProperties().put(Global.SINGLETON_NAME, singleton_name);
           return new JChannel(config);
       }
   
  
  
  

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev