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

Galder Zamarreno galder.zamarreno at jboss.com
Wed Jul 18 12:26:02 EDT 2007


  User: gzamarreno
  Date: 07/07/18 12:26:02

  Modified:    tests/functional/org/jboss/cache/loader 
                        SingletonStoreCacheLoaderTest.java
  Log:
  [JBCACHE-1091] Make SingletonStoreCacheLoaderTest create unit test configuration from UTCCF.
  
  Revision  Changes    Path
  1.8       +5 -7      JBossCache/tests/functional/org/jboss/cache/loader/SingletonStoreCacheLoaderTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: SingletonStoreCacheLoaderTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/loader/SingletonStoreCacheLoaderTest.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -b -r1.7 -r1.8
  --- SingletonStoreCacheLoaderTest.java	17 Jul 2007 22:16:48 -0000	1.7
  +++ SingletonStoreCacheLoaderTest.java	18 Jul 2007 16:26:02 -0000	1.8
  @@ -15,7 +15,9 @@
   import org.jboss.cache.loader.SingletonStoreCacheLoader.PushStateException;
   import org.jboss.cache.config.CacheLoaderConfig;
   import org.jboss.cache.config.Configuration;
  +import org.jboss.cache.config.Configuration.CacheMode;
   import org.jboss.cache.factories.XmlConfigurationParser;
  +import org.jboss.cache.factories.UnitTestCacheConfigurationFactory;
   import org.jboss.cache.xml.XmlHelper;
   import org.w3c.dom.Element;
   
  @@ -44,13 +46,9 @@
      {
         log.info("*** test:" + getName() + " ***");
   
  -      cache1 = (CacheImpl) DefaultCacheFactory.getInstance().createCache(false);
  -      cache2 = (CacheImpl) DefaultCacheFactory.getInstance().createCache(false);
  -      cache3 = (CacheImpl) DefaultCacheFactory.getInstance().createCache(false);
  -
  -      cache1.getConfiguration().setCacheMode(Configuration.CacheMode.REPL_SYNC);
  -      cache2.getConfiguration().setCacheMode(Configuration.CacheMode.REPL_SYNC);
  -      cache3.getConfiguration().setCacheMode(Configuration.CacheMode.REPL_SYNC);
  +      cache1 = (CacheImpl) DefaultCacheFactory.getInstance().createCache(UnitTestCacheConfigurationFactory.createConfiguration(CacheMode.REPL_SYNC), false);
  +      cache2 = (CacheImpl) DefaultCacheFactory.getInstance().createCache(UnitTestCacheConfigurationFactory.createConfiguration(CacheMode.REPL_SYNC), false);
  +      cache3 = (CacheImpl) DefaultCacheFactory.getInstance().createCache(UnitTestCacheConfigurationFactory.createConfiguration(CacheMode.REPL_SYNC), false);
      }
   
      public void testPutCacheLoaderWithNoPush() throws Exception
  
  
  



More information about the jboss-cvs-commits mailing list