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

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/statetransfer 
                        StateTransfer200Test.java
  Log:
  Habanero stabilisation efforts - scoping problems with more than one cache instance in the same thread/namespace.
  
  Revision  Changes    Path
  1.4       +3 -5      JBossCache/tests/functional/org/jboss/cache/statetransfer/StateTransfer200Test.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: StateTransfer200Test.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/statetransfer/StateTransfer200Test.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -b -r1.3 -r1.4
  --- StateTransfer200Test.java	20 Jul 2006 21:58:21 -0000	1.3
  +++ StateTransfer200Test.java	18 Aug 2006 15:40:41 -0000	1.4
  @@ -10,8 +10,6 @@
   import org.jboss.cache.CacheSPI;
   import org.jboss.cache.DataNode;
   import org.jboss.cache.Fqn;
  -import org.jboss.cache.InvocationContext;
  -import org.jboss.cache.TreeCache;
   import org.jboss.cache.buddyreplication.BuddyManager;
   import org.jboss.cache.config.Option;
   import org.jboss.cache.misc.TestingUtil;
  @@ -25,7 +23,7 @@
    * Tests that state transfer works properly if the version is 2.0.0.GA.
    * 
    * @author <a href="mailto://brian.stansberry@jboss.com">Brian Stansberry</a>
  - * @version $Revision: 1.3 $
  + * @version $Revision: 1.4 $
    */
   public class StateTransfer200Test extends VersionedTestBase
   {
  @@ -78,9 +76,9 @@
         DataNode target = (DataNode) cache1.get(backup);
         
         Fqn abc = Fqn.fromString("/a/b/c");
  -      InvocationContext.getCurrent().setOptionOverrides(option);
  +      cache2.getInvocationContext().setOptionOverrides(option);
         cache2.put(abc, "name", JOE);
  -      InvocationContext.getCurrent().setOptionOverrides(option);
  +      cache2.getInvocationContext().setOptionOverrides(option);
         cache2.put(A_D, "name", JANE);
         
         Object[] sources = cache1.getMembers().toArray();
  
  
  



More information about the jboss-cvs-commits mailing list