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

Manik Surtani msurtani at jboss.com
Thu Jul 20 02:04:56 EDT 2006


  User: msurtani
  Date: 06/07/20 02:04:56

  Modified:    tests/functional/org/jboss/cache/mgmt  PassivationTest.java
  Log:
  Fixed some broken UTs to use the new xml parsers, cache factories, etc.
  
  Revision  Changes    Path
  1.3       +52 -50    JBossCache/tests/functional/org/jboss/cache/mgmt/PassivationTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: PassivationTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/mgmt/PassivationTest.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -b -r1.2 -r1.3
  --- PassivationTest.java	7 Apr 2006 05:15:03 -0000	1.2
  +++ PassivationTest.java	20 Jul 2006 06:04:56 -0000	1.3
  @@ -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.ActivationInterceptor;
   import org.jboss.cache.interceptors.PassivationInterceptor;
   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 ActivationInterceptor and PassivationInterceptor statistics
    * @author Jerry Gauthier
  - * @version $Id: PassivationTest.java,v 1.2 2006/04/07 05:15:03 genman Exp $
  + * @version $Id: PassivationTest.java,v 1.3 2006/07/20 06:04:56 msurtani Exp $
    */
   public class PassivationTest extends TestCase
   {
  @@ -224,9 +224,11 @@
      private TreeCache createCache() throws Exception
      {
         TreeCache cache = new TreeCache();
  -      cache.setCacheMode(TreeCache.LOCAL);
  -      cache.setCacheLoaderConfiguration(getCacheLoaderConfig("location="+getTempDir()));
  -      cache.setUseInterceptorMbeans(true);
  +      Configuration c = new Configuration();
  +      c.setCacheMode("LOCAL");
  +      c.setCacheLoaderConfiguration(getCacheLoaderConfig("location="+getTempDir()));
  +      c.setUseInterceptorMbeans(true);
  +      cache.setConfiguration(c);
         cache.createService();
         cache.startService();
         return cache;
  
  
  



More information about the jboss-cvs-commits mailing list