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

Manik Surtani manik at jboss.org
Mon Jul 30 06:18:30 EDT 2007


  User: msurtani
  Date: 07/07/30 06:18:30

  Modified:    tests/functional/org/jboss/cache/notifications 
                        ConcurrentNotificationTest.java
  Log:
  Added exceptions to test
  
  Revision  Changes    Path
  1.3       +6 -0      JBossCache/tests/functional/org/jboss/cache/notifications/ConcurrentNotificationTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: ConcurrentNotificationTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/notifications/ConcurrentNotificationTest.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -b -r1.2 -r1.3
  --- ConcurrentNotificationTest.java	30 Jul 2007 07:45:52 -0000	1.2
  +++ ConcurrentNotificationTest.java	30 Jul 2007 10:18:30 -0000	1.3
  @@ -1,6 +1,8 @@
   package org.jboss.cache.notifications;
   
   import junit.framework.TestCase;
  +import org.apache.commons.logging.Log;
  +import org.apache.commons.logging.LogFactory;
   import org.jboss.cache.Cache;
   import org.jboss.cache.DefaultCacheFactory;
   import org.jboss.cache.Fqn;
  @@ -25,6 +27,7 @@
      private Cache cache;
      private Listener listener;
      private Fqn fqn = Fqn.fromString("/a/b/c");
  +   private static final Log log = LogFactory.getLog(ConcurrentNotificationTest.class);
   
      protected void setUp()
      {
  @@ -73,6 +76,7 @@
                     }
                     catch (Exception e)
                     {
  +                     log.error("Exception doing put in loop " + j, e);
                        exceptions.add(new Exception("Caused on thread " + getName() + " in loop " + j + " when doing a put()", e));
                     }
   
  @@ -82,6 +86,7 @@
                     }
                     catch (Exception e)
                     {
  +                     log.error("Exception doing remove in loop " + j, e);
                        exceptions.add(new Exception("Caused on thread " + getName() + " in loop " + j + " when doing a remove()", e));
                     }
   
  @@ -91,6 +96,7 @@
                     }
                     catch (Exception e)
                     {
  +                     log.error("Exception doing get in loop " + j, e);
                        exceptions.add(new Exception("Caused on thread " + getName() + " in loop " + j + " when doing a get()", e));
                     }
                  }
  
  
  



More information about the jboss-cvs-commits mailing list