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

Manik Surtani msurtani at jboss.com
Thu Jul 20 07:14:17 EDT 2006


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

  Modified:    tests/functional/org/jboss/cache/mgmt  NotificationTest.java
  Log:
  Partially migrated to new configurators
  
  Revision  Changes    Path
  1.6       +3 -4      JBossCache/tests/functional/org/jboss/cache/mgmt/NotificationTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: NotificationTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/mgmt/NotificationTest.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -b -r1.5 -r1.6
  --- NotificationTest.java	20 Jul 2006 09:03:54 -0000	1.5
  +++ NotificationTest.java	20 Jul 2006 11:14:17 -0000	1.6
  @@ -7,9 +7,9 @@
   import org.jboss.cache.CacheListener;
   import org.jboss.cache.CacheSPI;
   import org.jboss.cache.Fqn;
  -import org.jboss.cache.PropertyConfigurator;
   import org.jboss.cache.TreeCache;
   import org.jboss.cache.config.Configuration;
  +import org.jboss.cache.factories.XmlConfigurationParser;
   import org.jboss.cache.interceptors.CacheMgmtInterceptor;
   import org.jboss.cache.loader.CacheLoader;
   import org.jboss.cache.xml.XmlHelper;
  @@ -28,7 +28,7 @@
   /**
    * Functional tests for CacheMgmtInterceptor broadcast of cache event notifications
    * @author Jerry Gauthier
  - * @version $Id: NotificationTest.java,v 1.5 2006/07/20 09:03:54 msurtani Exp $
  + * @version $Id: NotificationTest.java,v 1.6 2006/07/20 11:14:17 msurtani Exp $
    */
   public class NotificationTest extends TestCase
   {
  @@ -217,8 +217,7 @@
      private TreeCache createCache(String clusterName) throws Exception
      {
         TreeCache cache = new TreeCache();
  -      PropertyConfigurator config=new PropertyConfigurator();
  -      config.configure(cache, "META-INF/replSync-service.xml");
  +      cache.setConfiguration(new XmlConfigurationParser().parseFile("META-INF/replSync-service.xml")); 
         cache.getConfiguration().setCacheMode(Configuration.CacheMode.REPL_SYNC);
         cache.getConfiguration().setCacheLoaderConfiguration(getCacheLoaderConfig("location="+getTempDir()));
         cache.getConfiguration().setUseInterceptorMbeans(true);
  
  
  



More information about the jboss-cvs-commits mailing list