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

Manik Surtani msurtani at jboss.com
Thu Jul 20 06:59:14 EDT 2006


  User: msurtani
  Date: 06/07/20 06:59:14

  Modified:    tests/functional/org/jboss/cache/passivation 
                        PassivationToLocalDelegatingCacheLoaderTest.java
  Log:
  Fixed some broken UTs to use the new xml parsers, cache factories, etc.
  
  Revision  Changes    Path
  1.4       +4 -3      JBossCache/tests/functional/org/jboss/cache/passivation/PassivationToLocalDelegatingCacheLoaderTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: PassivationToLocalDelegatingCacheLoaderTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/passivation/PassivationToLocalDelegatingCacheLoaderTest.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -b -r1.3 -r1.4
  --- PassivationToLocalDelegatingCacheLoaderTest.java	10 Jan 2006 23:41:18 -0000	1.3
  +++ PassivationToLocalDelegatingCacheLoaderTest.java	20 Jul 2006 10:59:14 -0000	1.4
  @@ -3,6 +3,7 @@
   import junit.framework.Test;
   import junit.framework.TestSuite;
   import org.jboss.cache.TreeCache;
  +import org.jboss.cache.config.Configuration;
   import org.jboss.cache.loader.DelegatingCacheLoader;
   import org.jboss.cache.loader.LocalDelegatingCacheLoader;
   
  @@ -10,7 +11,7 @@
    * Runs a test against using delegated cache loader
    * 
    * @author <a href="mailto:{hmesha at novell.com}">{Hany Mesha}</a>
  - * @version $Id: PassivationToLocalDelegatingCacheLoaderTest.java,v 1.3 2006/01/10 23:41:18 msurtani Exp $
  + * @version $Id: PassivationToLocalDelegatingCacheLoaderTest.java,v 1.4 2006/07/20 10:59:14 msurtani Exp $
    */
   public class PassivationToLocalDelegatingCacheLoaderTest extends PassivationTestsBase {
      TreeCache delegating_cache;
  @@ -19,12 +20,12 @@
   
      protected void configureCache() throws Exception {
         delegating_cache=new TreeCache();
  -      delegating_cache.setCacheMode(TreeCache.LOCAL);
  +      delegating_cache.getConfiguration().setCacheMode(Configuration.CacheMode.LOCAL);
         delegating_cache.createService();
         delegating_cache.startService();
         cache_loader=new LocalDelegatingCacheLoader(delegating_cache);
          // configure first ...
  -       cache.setCacheLoaderConfiguration(getCacheLoaderConfig("", "org.jboss.cache.loader.LocalDelegatingCacheLoader", "", false, false));
  +       cache.getConfiguration().setCacheLoaderConfiguration(getCacheLoaderConfig("", "org.jboss.cache.loader.LocalDelegatingCacheLoader", "", false, false));
   
          cache.setCacheLoader(cache_loader);
      }
  
  
  



More information about the jboss-cvs-commits mailing list