CVS update: JGroups/tests/junit-functional/org/jgroups/tests ConfiguratorTest.java

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

  Modified:    tests/junit-functional/org/jgroups/tests
                        ConfiguratorTest.java
  Log:
  ns
  
  Revision  Changes    Path
  1.18      +7 -7      JGroups/tests/junit-functional/org/jgroups/tests/ConfiguratorTest.java
  
  Index: ConfiguratorTest.java
  ===================================================================
  RCS file: /cvsroot/javagroups/JGroups/tests/junit-functional/org/jgroups/tests/ConfiguratorTest.java,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- ConfiguratorTest.java	16 Sep 2010 15:26:22 -0000	1.17
  +++ ConfiguratorTest.java	16 Sep 2010 15:46:51 -0000	1.18
  @@ -15,7 +15,7 @@
   /**
    * Tests ProtocolStack.insertProtocol() and removeProtocol()
    * @author Bela Ban
  - * @version $Id: ConfiguratorTest.java,v 1.17 2010/09/16 15:26:22 belaban Exp $
  + * @version $Id: ConfiguratorTest.java,v 1.18 2010/09/16 15:46:51 belaban Exp $
    */
   @Test(groups=Global.FUNCTIONAL,sequential=true)
   public class ConfiguratorTest {
  @@ -30,12 +30,12 @@
       @BeforeMethod
       void setUp() throws Exception {
           JChannel mock_channel=new JChannel() {};
  -        stack=new ProtocolStack(mock_channel, Configurator.parseConfigurations(props));
  +        stack=new ProtocolStack(mock_channel);
       }
   
       
       public void testRemovalOfTop() throws Exception {
  -        stack.setup(); 
  +        stack.setup(Configurator.parseConfigurations(props));
           Protocol prot=stack.removeProtocol("FC");
           assert prot != null;
           List<Protocol> protocols=stack.getProtocols();
  @@ -48,7 +48,7 @@
       }
       
       public void testRemovalOfBottom() throws Exception {
  -        stack.setup(); 
  +        stack.setup(Configurator.parseConfigurations(props));
           Protocol prot=stack.removeProtocol("UDP");
           assert prot != null;
           List<Protocol> protocols=stack.getProtocols();
  @@ -57,7 +57,7 @@
       }
       
       public void testAddingAboveTop() throws Exception{
  -        stack.setup();           
  +        stack.setup(Configurator.parseConfigurations(props));
           Protocol new_prot=(Protocol)Class.forName("org.jgroups.protocols.TRACE").newInstance();
           stack.insertProtocol(new_prot, ProtocolStack.ABOVE, "FC");
           List<Protocol> protocols=stack.getProtocols();
  @@ -71,7 +71,7 @@
       
       @Test(expectedExceptions={IllegalArgumentException.class})
       public void testAddingBelowBottom() throws Exception{
  -        stack.setup();           
  +        stack.setup(Configurator.parseConfigurations(props));           
           Protocol new_prot=(Protocol)Class.forName("org.jgroups.protocols.TRACE").newInstance();
           stack.insertProtocol(new_prot, ProtocolStack.BELOW, "UDP");        
       }
  @@ -79,7 +79,7 @@
       
   
       public void testInsertion() throws Exception {
  -        stack.setup();
  +        stack.setup(Configurator.parseConfigurations(props));
           List<Protocol> protocols=stack.getProtocols();
           assert protocols != null;
           Assert.assertEquals(6, protocols.size());
  
  
  

------------------------------------------------------------------------------
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