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

Manik Surtani msurtani at jboss.com
Fri Aug 18 11:40:41 EDT 2006


  User: msurtani
  Date: 06/08/18 11:40:41

  Modified:    tests/functional/org/jboss/cache/options/cachemodelocal 
                        CacheModeLocalTestBase.java
  Log:
  Habanero stabilisation efforts - scoping problems with more than one cache instance in the same thread/namespace.
  
  Revision  Changes    Path
  1.5       +2 -3      JBossCache/tests/functional/org/jboss/cache/options/cachemodelocal/CacheModeLocalTestBase.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: CacheModeLocalTestBase.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/options/cachemodelocal/CacheModeLocalTestBase.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -b -r1.4 -r1.5
  --- CacheModeLocalTestBase.java	20 Jul 2006 09:03:54 -0000	1.4
  +++ CacheModeLocalTestBase.java	18 Aug 2006 15:40:41 -0000	1.5
  @@ -9,7 +9,6 @@
   import junit.framework.Assert;
   import junit.framework.TestCase;
   import org.jboss.cache.Fqn;
  -import org.jboss.cache.InvocationContext;
   import org.jboss.cache.TreeCache;
   import org.jboss.cache.config.Configuration;
   import org.jboss.cache.config.Option;
  @@ -164,7 +163,7 @@
       {
           // put some stuff in the cache first
           // make sure we cleanup thread local vars.
  -        InvocationContext.getCurrent().setOptionOverrides(null);
  +        cache1.getInvocationContext().setOptionOverrides(null);
           cache1.put(fqn, key, "value");
           delay();
           Assert.assertEquals("value", cache1.get(fqn, key));
  @@ -205,7 +204,7 @@
       public void testRemoveKey() throws Exception
       {
           // put some stuff in the cache first
  -        InvocationContext.getCurrent().setOptionOverrides(null);
  +        cache1.getInvocationContext().setOptionOverrides(null);
           cache1.put(fqn, key, "value");
           delay();
           Assert.assertEquals("value", cache1.get(fqn, key));
  
  
  



More information about the jboss-cvs-commits mailing list