[jboss-cvs] JBossCache/tests/functional/org/jboss/cache/replicated ...

Manik Surtani msurtani at jboss.com
Wed Sep 6 11:31:00 EDT 2006


  User: msurtani
  Date: 06/09/06 11:31:00

  Modified:    tests/functional/org/jboss/cache/replicated 
                        AsyncReplTest.java
  Log:
  Removed TreeCache dependency on ServiceMBeanSupport
  
  Revision  Changes    Path
  1.11      +9 -9      JBossCache/tests/functional/org/jboss/cache/replicated/AsyncReplTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: AsyncReplTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/replicated/AsyncReplTest.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -b -r1.10 -r1.11
  --- AsyncReplTest.java	29 Aug 2006 16:35:52 -0000	1.10
  +++ AsyncReplTest.java	6 Sep 2006 15:31:00 -0000	1.11
  @@ -24,7 +24,7 @@
    * Unit test for replicated async TreeCache. Use locking and multiple threads to test
    * concurrent access to the tree.
    *
  - * @version $Revision: 1.10 $
  + * @version $Revision: 1.11 $
    */
   public class AsyncReplTest extends TestCase
   {
  @@ -52,8 +52,8 @@
         TreeCache tree = new TreeCache();
         tree.setConfiguration(new XmlConfigurationParser().parseFile("META-INF/replAsync-service.xml"));
         tree.getConfiguration().setClusterName(name);
  -      tree.createService();
  -      tree.startService();
  +      tree.create();
  +      tree.start();
         return tree;
      }
   
  @@ -63,14 +63,14 @@
         if (cache1 != null)
         {
            log("stopping cache1");
  -         cache1.stopService();
  +         cache1.stop();
            cache1 = null;
         }
   
         if (cache2 != null)
         {
            log("stopping cache2");
  -         cache2.stopService();
  +         cache2.stop();
            cache2 = null;
         }
      }
  @@ -116,13 +116,13 @@
   
         if (cache1 != null)
         {
  -         cache1.stopService();
  +         cache1.stop();
            cache1 = null;
         }
   
         if (cache2 != null)
         {
  -         cache2.stopService();
  +         cache2.stop();
            cache2 = null;
         }
   
  @@ -148,7 +148,7 @@
         {
            if (cache3 != null)
            {
  -            cache3.stopService();
  +            cache3.stop();
            }
         }
      }
  @@ -173,7 +173,7 @@
            if (cache4 != null)
            {
               System.out.println("cache4's view: " + cache4.getMembers());
  -            cache4.stopService();
  +            cache4.stop();
            }
         }
      }
  
  
  



More information about the jboss-cvs-commits mailing list