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

Manik Surtani manik at jboss.org
Wed May 23 06:28:52 EDT 2007


  User: msurtani
  Date: 07/05/23 06:28:52

  Modified:    tests/functional/org/jboss/cache/pojo/memory 
                        ReplicatedTest.java
  Log:
  Initiated a bunch of performance fixes, including replacing CopyOnWriteArraySets with org.jboss.cache.util.concurrent.ConcurrentHashSet.
  Also ran an imports optimiser on the code base - there were a lot of unused imports floating about.
  
  Revision  Changes    Path
  1.3       +7 -5      JBossCache/tests/functional/org/jboss/cache/pojo/memory/ReplicatedTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: ReplicatedTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/pojo/memory/ReplicatedTest.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -b -r1.2 -r1.3
  --- ReplicatedTest.java	16 Apr 2007 17:37:12 -0000	1.2
  +++ ReplicatedTest.java	23 May 2007 10:28:52 -0000	1.3
  @@ -12,6 +12,7 @@
   import junit.framework.TestSuite;
   import org.apache.commons.logging.Log;
   import org.apache.commons.logging.LogFactory;
  +import org.jboss.cache.Fqn;
   import org.jboss.cache.config.Configuration.CacheMode;
   import org.jboss.cache.factories.UnitTestCacheConfigurationFactory;
   import org.jboss.cache.pojo.PojoCache;
  @@ -20,7 +21,6 @@
   import org.jboss.cache.pojo.test.Address;
   import org.jboss.cache.pojo.test.Person;
   import org.jboss.cache.pojo.test.SerializedAddress;
  -import org.jboss.cache.Fqn;
   
   import java.lang.ref.WeakReference;
   import java.util.ArrayList;
  @@ -85,7 +85,8 @@
            Object ben = cache1_.getCache().get(fqn, "add");
            assertEquals(add.toString(), ben.toString());
            ben = null;
  -      } catch (Exception ex)
  +      }
  +      catch (Exception ex)
         {
            fail("Test fails with exception " + ex);
         }
  @@ -151,7 +152,8 @@
            Object ben = cache1_.find("/aop");
            assertEquals(p.toString(), ben.toString());
            ben = null;
  -      } catch (Exception ex)
  +      }
  +      catch (Exception ex)
         {
            fail("Test fails with exception " + ex);
         }
  @@ -172,7 +174,7 @@
      {
         String[] includesClasses = {"org.jboss.cache.aop.test.Person",
                 "org.jboss.cache.aop.test.Address"};
  -      String [] excludesClasses = {};
  +      String[] excludesClasses = {};
         ClassLoader cl = Thread.currentThread().getContextClassLoader();
         return new SelectedClassnameClassLoader(includesClasses, excludesClasses, cl);
      }
  
  
  



More information about the jboss-cvs-commits mailing list