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

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


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

  Modified:    tests/functional/org/jboss/cache/transaction 
                        ReplicatedTransactionDeadlockTest.java
  Log:
  JBCACHE-840 (work in progress)
  
  Revision  Changes    Path
  1.7       +6 -4      JBossCache/tests/functional/org/jboss/cache/transaction/ReplicatedTransactionDeadlockTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: ReplicatedTransactionDeadlockTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/transaction/ReplicatedTransactionDeadlockTest.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -b -r1.6 -r1.7
  --- ReplicatedTransactionDeadlockTest.java	30 Dec 2006 17:49:53 -0000	1.6
  +++ ReplicatedTransactionDeadlockTest.java	10 Jan 2007 15:39:52 -0000	1.7
  @@ -8,6 +8,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 javax.naming.Context;
  @@ -56,8 +58,8 @@
    * </ul>
    *
    * @author Marian Nikolov
  - * @author $Author: msurtani $
  - * @version $Date: 2006/12/30 17:49:53 $
  + * @author $Author: vblagojevic $
  + * @version $Date: 2007/01/10 15:39:52 $
    */
   public class ReplicatedTransactionDeadlockTest extends TestCase
   {
  @@ -130,7 +132,7 @@
         DummyTransactionManager.getInstance();
         // setup and start the source cache
         srcCache = new CacheImpl();
  -      srcCache.setConfiguration(new XmlConfigurationParser().parseFile("META-INF/replSync-service.xml"));
  +      srcCache.setConfiguration(UnitTestCacheFactory.createConfiguration(CacheMode.REPL_SYNC));
         srcCache.getConfiguration().setTransactionManagerLookupClass(
                 "org.jboss.cache.DummyTransactionManagerLookup");
         srcCache.getConfiguration().setCacheMode(Configuration.CacheMode.REPL_SYNC);
  @@ -141,7 +143,7 @@
         srcCache.start();
         // setup and start the destination cache
         dstCache = new CacheImpl();
  -      dstCache.setConfiguration(new XmlConfigurationParser().parseFile("META-INF/replSync-service.xml"));
  +      dstCache.setConfiguration(UnitTestCacheFactory.createConfiguration(CacheMode.REPL_SYNC));
         dstCache.getConfiguration().setTransactionManagerLookupClass(
                 "org.jboss.cache.DummyTransactionManagerLookup");
         dstCache.getConfiguration().setCacheMode(Configuration.CacheMode.REPL_SYNC);
  @@ -226,8 +228,8 @@
       * A worker thread that applies the concurrent modifications.
       *
       * @author Marian Nikolov
  -    * @author $Author: msurtani $
  -    * @version $Date: 2006/12/30 17:49:53 $
  +    * @author $Author: vblagojevic $
  +    * @version $Date: 2007/01/10 15:39:52 $
       */
      private class Worker extends Thread
      {
  
  
  



More information about the jboss-cvs-commits mailing list