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

Manik Surtani msurtani at jboss.com
Thu Jul 20 06:54:01 EDT 2006


  User: msurtani
  Date: 06/07/20 06:54:01

  Modified:    tests/functional/org/jboss/cache/transaction 
                        ReplicatedTransactionDeadlockTest.java
  Log:
  Fixed some broken UTs to use the new xml parsers, cache factories, etc.
  
  Revision  Changes    Path
  1.2       +15 -14    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.1
  retrieving revision 1.2
  diff -u -b -r1.1 -r1.2
  --- ReplicatedTransactionDeadlockTest.java	5 May 2006 14:37:46 -0000	1.1
  +++ ReplicatedTransactionDeadlockTest.java	20 Jul 2006 10:54:01 -0000	1.2
  @@ -6,6 +6,7 @@
   import org.jboss.cache.Fqn;
   import org.jboss.cache.PropertyConfigurator;
   import org.jboss.cache.TreeCache;
  +import org.jboss.cache.config.Configuration;
   
   import javax.naming.Context;
   import javax.naming.InitialContext;
  @@ -55,8 +56,8 @@
    * @author Marian Nikolov
    * @author $Author: msurtani $
    * @version $RCSfile: ReplicatedTransactionDeadlockTest.java,v $
  - * @version $Revision: 1.1 $
  - * @version $Date: 2006/05/05 14:37:46 $
  + * @version $Revision: 1.2 $
  + * @version $Date: 2006/07/20 10:54:01 $
    */
   public class ReplicatedTransactionDeadlockTest extends TestCase {
       /** The number of worker threads to start concurrently. */
  @@ -108,21 +109,21 @@
           // setup and start the source cache
           m_srcCache = new TreeCache();
           config.configure(m_srcCache, "META-INF/replSync-service.xml");
  -        m_srcCache.setTransactionManagerLookupClass(
  +        m_srcCache.getConfiguration().setTransactionManagerLookupClass(
                   "org.jboss.cache.DummyTransactionManagerLookup");
  -        m_srcCache.setCacheMode(TreeCache.REPL_SYNC);
  +        m_srcCache.getConfiguration().setCacheMode(Configuration.CacheMode.REPL_SYNC);
   
  -        m_srcCache.setSyncCommitPhase(true);
  +        m_srcCache.getConfiguration().setSyncCommitPhase(true);
           m_srcCache.createService();
           m_srcCache.startService();
           // setup and start the destination cache
           m_dstCache = new TreeCache();
           config.configure(m_dstCache, "META-INF/replSync-service.xml");
  -        m_dstCache.setTransactionManagerLookupClass(
  +        m_dstCache.getConfiguration().setTransactionManagerLookupClass(
                   "org.jboss.cache.DummyTransactionManagerLookup");
  -        m_dstCache.setCacheMode(TreeCache.REPL_SYNC);
  +        m_dstCache.getConfiguration().setCacheMode(Configuration.CacheMode.REPL_SYNC);
   
  -        m_dstCache.setSyncCommitPhase(true);
  +        m_dstCache.getConfiguration().setSyncCommitPhase(true);
           m_dstCache.createService();
           m_dstCache.startService();
       }
  @@ -208,8 +209,8 @@
        * @author Marian Nikolov
        * @author $Author: msurtani $
        * @version $RCSfile: ReplicatedTransactionDeadlockTest.java,v $
  -     * @version $Revision: 1.1 $
  -     * @version $Date: 2006/05/05 14:37:46 $
  +     * @version $Revision: 1.2 $
  +     * @version $Date: 2006/07/20 10:54:01 $
        */
       private class Worker extends Thread {
           /**
  
  
  



More information about the jboss-cvs-commits mailing list