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

Manik Surtani msurtani at jboss.com
Thu Jul 20 06:31:40 EDT 2006


  User: msurtani
  Date: 06/07/20 06:31:40

  Modified:    tests/functional/org/jboss/cache/mgmt  CacheLoaderTest.java
  Log:
  Fixed some broken UTs to use the new xml parsers, cache factories, etc.
  
  Revision  Changes    Path
  1.5       +8 -8      JBossCache/tests/functional/org/jboss/cache/mgmt/CacheLoaderTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: CacheLoaderTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/mgmt/CacheLoaderTest.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -b -r1.4 -r1.5
  --- CacheLoaderTest.java	7 Apr 2006 05:15:03 -0000	1.4
  +++ CacheLoaderTest.java	20 Jul 2006 10:31:40 -0000	1.5
  @@ -1,24 +1,24 @@
   package org.jboss.cache.mgmt;
   
  -import java.util.HashMap;
  -import java.util.List;
  -
   import junit.framework.Test;
   import junit.framework.TestCase;
   import junit.framework.TestSuite;
  -
   import org.jboss.cache.Fqn;
   import org.jboss.cache.TreeCache;
  +import org.jboss.cache.config.Configuration;
   import org.jboss.cache.interceptors.CacheLoaderInterceptor;
   import org.jboss.cache.interceptors.CacheStoreInterceptor;
   import org.jboss.cache.loader.CacheLoader;
   import org.jboss.cache.xml.XmlHelper;
   import org.w3c.dom.Element;
   
  +import java.util.HashMap;
  +import java.util.List;
  +
   /**
    * Simple functional tests for CacheLoaderInterceptor and CacheStoreInterceptor statistics
    * @author Jerry Gauthier
  - * @version $Id: CacheLoaderTest.java,v 1.4 2006/04/07 05:15:03 genman Exp $
  + * @version $Id: CacheLoaderTest.java,v 1.5 2006/07/20 10:31:40 msurtani Exp $
    */
   public class CacheLoaderTest extends TestCase
   {
  @@ -200,9 +200,9 @@
      private TreeCache createCache() throws Exception
      {
         TreeCache cache = new TreeCache();
  -      cache.setCacheMode(TreeCache.LOCAL);
  -      cache.setCacheLoaderConfiguration(getCacheLoaderConfig("location="+getTempDir()));
  -      cache.setUseInterceptorMbeans(true);
  +      cache.getConfiguration().setCacheMode(Configuration.CacheMode.LOCAL);
  +      cache.getConfiguration().setCacheLoaderConfiguration(getCacheLoaderConfig("location="+getTempDir()));
  +      cache.getConfiguration().setUseInterceptorMbeans(true);
         cache.createService();
         cache.startService();
         return cache;
  
  
  



More information about the jboss-cvs-commits mailing list