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

Manik Surtani manik at jboss.org
Wed Aug 1 06:39:33 EDT 2007


  User: msurtani
  Date: 07/08/01 06:39:33

  Modified:    tests/functional/org/jboss/cache/statetransfer 
                        StateTransferTestBase.java
  Log:
  teardown should not fail test
  
  Revision  Changes    Path
  1.41      +24 -9     JBossCache/tests/functional/org/jboss/cache/statetransfer/StateTransferTestBase.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: StateTransferTestBase.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/statetransfer/StateTransferTestBase.java,v
  retrieving revision 1.40
  retrieving revision 1.41
  diff -u -b -r1.40 -r1.41
  --- StateTransferTestBase.java	21 Jul 2007 17:00:42 -0000	1.40
  +++ StateTransferTestBase.java	1 Aug 2007 10:39:33 -0000	1.41
  @@ -322,18 +322,33 @@
   
         System.out.println("*** in tearDown()");
   
  +
  +      try
  +      {
         super.tearDown();
  +      }
  +      catch (Exception e)
  +      {
  +         // errors in teardown should not fail test
  +      }
   
         // Restore the TCL in case a test changed it
         Thread.currentThread().setContextClassLoader(orig_TCL);
   
         for (String cacheID : caches.keySet())
         {
  +         try
  +         {
            stopCache(caches.get(cacheID));
            TestingUtil.sleepThread(1500);
            File file = new File(getTempLocation(cacheID));
            cleanFile(file);
         }
  +         catch (Exception e)
  +         {
  +            // errors in teardown should not fail test
  +         }
  +      }
      }
   
      protected void stopCache(Cache cache)
  
  
  



More information about the jboss-cvs-commits mailing list