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

Vladmir Blagojevic vladimir.blagojevic at jboss.com
Wed Jan 10 10:39:51 EST 2007


  User: vblagojevic
  Date: 07/01/10 10:39:51

  Modified:    tests/functional/org/jboss/cache/mgmt  
                        NotificationTest.java TxTest.java
  Log:
  JBCACHE-840 (work in progress)
  
  Revision  Changes    Path
  1.18      +4 -2      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.17
  retrieving revision 1.18
  diff -u -b -r1.17 -r1.18
  --- NotificationTest.java	5 Jan 2007 14:27:15 -0000	1.17
  +++ NotificationTest.java	10 Jan 2007 15:39:51 -0000	1.18
  @@ -5,6 +5,8 @@
   import org.jboss.cache.Fqn;
   import org.jboss.cache.config.CacheLoaderConfig;
   import org.jboss.cache.config.Configuration;
  +import org.jboss.cache.config.Configuration.CacheMode;
  +import org.jboss.cache.factories.UnitTestCacheFactory;
   import org.jboss.cache.factories.XmlConfigurationParser;
   import org.jboss.cache.interceptors.CacheMgmtInterceptor;
   import org.jboss.cache.jmx.CacheJmxWrapper;
  @@ -24,7 +26,7 @@
    * Functional tests for CacheMgmtInterceptor broadcast of cache event notifications
    *
    * @author Jerry Gauthier
  - * @version $Id: NotificationTest.java,v 1.17 2007/01/05 14:27:15 msurtani Exp $
  + * @version $Id: NotificationTest.java,v 1.18 2007/01/10 15:39:51 vblagojevic Exp $
    */
   public class NotificationTest extends TestCase
   {
  @@ -159,7 +161,7 @@
      private CacheImpl createCache(String clusterName) throws Exception
      {
         CacheImpl cache = new CacheImpl();
  -      cache.setConfiguration(new XmlConfigurationParser().parseFile("META-INF/replSync-service.xml"));
  +      cache.setConfiguration(UnitTestCacheFactory.createConfiguration(CacheMode.REPL_SYNC));
         cache.getConfiguration().setCacheMode(Configuration.CacheMode.REPL_SYNC);
         cache.getConfiguration().setCacheLoaderConfig(getCacheLoaderConfig("location=" + getTempDir()));
         cache.getConfiguration().setExposeManagementStatistics(true);
  
  
  
  1.11      +4 -2      JBossCache/tests/functional/org/jboss/cache/mgmt/TxTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: TxTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/mgmt/TxTest.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -b -r1.10 -r1.11
  --- TxTest.java	30 Dec 2006 19:48:46 -0000	1.10
  +++ TxTest.java	10 Jan 2007 15:39:51 -0000	1.11
  @@ -6,6 +6,8 @@
   import org.jboss.cache.CacheImpl;
   import org.jboss.cache.Fqn;
   import org.jboss.cache.config.Configuration;
  +import org.jboss.cache.config.Configuration.CacheMode;
  +import org.jboss.cache.factories.UnitTestCacheFactory;
   import org.jboss.cache.factories.XmlConfigurationParser;
   import org.jboss.cache.interceptors.TxInterceptor;
   
  @@ -17,7 +19,7 @@
    * Simple functional tests for TxInterceptor statistics
    *
    * @author Jerry Gauthier
  - * @version $Id: TxTest.java,v 1.10 2006/12/30 19:48:46 msurtani Exp $
  + * @version $Id: TxTest.java,v 1.11 2007/01/10 15:39:51 vblagojevic Exp $
    */
   public class TxTest extends TestCase
   {
  @@ -208,7 +210,7 @@
      private CacheImpl createCache(String clusterName) throws Exception
      {
         CacheImpl cache = new CacheImpl();
  -      cache.setConfiguration(new XmlConfigurationParser().parseFile("META-INF/replSync-service.xml"));
  +      cache.setConfiguration(UnitTestCacheFactory.createConfiguration(CacheMode.REPL_SYNC));
         cache.getConfiguration().setUseRegionBasedMarshalling(false);
         cache.getConfiguration().setCacheMode(Configuration.CacheMode.REPL_SYNC);
         cache.getConfiguration().setExposeManagementStatistics(true);
  
  
  



More information about the jboss-cvs-commits mailing list