[jboss-cvs] JBossCache/tests-50/functional/org/jboss/cache/pojo/memory ...

Vladmir Blagojevic vladimir.blagojevic at jboss.com
Wed Jan 10 11:44:15 EST 2007


  User: vblagojevic
  Date: 07/01/10 11:44:15

  Modified:    tests-50/functional/org/jboss/cache/pojo/memory 
                        ReplicatedTest.java
  Log:
  JBCACHE-840 (work in progress)
  
  Revision  Changes    Path
  1.7       +4 -3      JBossCache/tests-50/functional/org/jboss/cache/pojo/memory/ReplicatedTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: ReplicatedTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests-50/functional/org/jboss/cache/pojo/memory/ReplicatedTest.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -b -r1.6 -r1.7
  --- ReplicatedTest.java	20 Nov 2006 03:53:57 -0000	1.6
  +++ ReplicatedTest.java	10 Jan 2007 16:44:15 -0000	1.7
  @@ -12,6 +12,8 @@
   import junit.framework.TestSuite;
   import org.apache.commons.logging.Log;
   import org.apache.commons.logging.LogFactory;
  +import org.jboss.cache.config.Configuration.CacheMode;
  +import org.jboss.cache.factories.UnitTestCacheFactory;
   import org.jboss.cache.pojo.PojoCache;
   import org.jboss.cache.pojo.PojoCacheFactory;
   import org.jboss.cache.pojo.TestingUtil;
  @@ -41,11 +43,10 @@
      protected void setUp() throws Exception
      {
         super.setUp();
  -      String configFile = "META-INF/replSync-service.xml";
         boolean toStart = false;
  -      cache_ = PojoCacheFactory.createCache(configFile, toStart);
  +      cache_ = PojoCacheFactory.createCache(UnitTestCacheFactory.createConfiguration(CacheMode.REPL_SYNC), toStart);
         cache_.start();
  -      cache1_ = PojoCacheFactory.createCache(configFile, toStart);
  +      cache1_ = PojoCacheFactory.createCache(UnitTestCacheFactory.createConfiguration(CacheMode.REPL_SYNC), toStart);
         cache1_.start();
      }
   
  
  
  



More information about the jboss-cvs-commits mailing list