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

Vladmir Blagojevic vladimir.blagojevic at jboss.com
Wed Sep 20 10:45:33 EDT 2006


  User: vblagojevic
  Date: 06/09/20 10:45:33

  Modified:    tests/functional/org/jboss/cache/buddyreplication  
                        BuddyGroupAssignmentTest.java
                        BuddyReplicationContentTest.java
  Log:
  proper teardown
  
  Revision  Changes    Path
  1.12      +3 -3      JBossCache/tests/functional/org/jboss/cache/buddyreplication/BuddyGroupAssignmentTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: BuddyGroupAssignmentTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/buddyreplication/BuddyGroupAssignmentTest.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -b -r1.11 -r1.12
  --- BuddyGroupAssignmentTest.java	12 Sep 2006 10:36:25 -0000	1.11
  +++ BuddyGroupAssignmentTest.java	20 Sep 2006 14:45:32 -0000	1.12
  @@ -58,7 +58,7 @@
      public void test2Buddies() throws Exception
      {
         log.debug("Running test2Buddies");
  -      TreeCache[] caches = createCaches(2, 3, false);
  +      caches = createCaches(2, 3, false);
   
         System.out.println("*** Testing cache 0");
         assertIsBuddy(caches[0], caches[1], false);
  @@ -74,7 +74,7 @@
      public void testRemovalFromClusterSingleBuddy() throws Exception
      {
         log.debug("Running testRemovalFromClusterSingleBuddy");
  -      TreeCache[] caches = createCaches(3, false);
  +      caches = createCaches(3, false);
   
         System.out.println("*** Testing cache 0");
         assertIsBuddy(caches[0], caches[1], true);
  @@ -101,7 +101,7 @@
      public void testRemovalFromCluster2Buddies() throws Exception
      {
         log.debug("Running testRemovalFromCluster2Buddies");
  -      TreeCache[] caches = createCaches(2, 4, false);
  +      caches = createCaches(2, 4, false);
         assertNoLocks(caches);
   
         System.out.println("*** Testing cache 0");
  
  
  
  1.12      +15 -0     JBossCache/tests/functional/org/jboss/cache/buddyreplication/BuddyReplicationContentTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: BuddyReplicationContentTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/buddyreplication/BuddyReplicationContentTest.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -b -r1.11 -r1.12
  --- BuddyReplicationContentTest.java	12 Sep 2006 10:36:26 -0000	1.11
  +++ BuddyReplicationContentTest.java	20 Sep 2006 14:45:33 -0000	1.12
  @@ -34,6 +34,21 @@
         assertEquals("Number of locks in cache instance " + cache + " should be 0", 0, cache.getNumberOfLocksHeld());
      }
   
  +   protected void setUp() throws Exception
  +   {
  +      log.debug("Starting setUp()");
  +      super.setUp();
  +      log.debug("Finishing setUp()");
  +   }
  +
  +   protected void tearDown() throws Exception
  +   {
  +      super.tearDown();
  +      log.debug("Starting tearDown()");
  +      cleanup(caches);
  +      log.debug("Finishing tearDown()");
  +   }
  +
      public void testSimplePut() throws Exception
      {
         log.debug("Running testSimplePut");
  
  
  



More information about the jboss-cvs-commits mailing list