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

Manik Surtani msurtani at jboss.com
Thu Jul 20 07:14:18 EDT 2006


  User: msurtani
  Date: 06/07/20 07:14:18

  Modified:    tests/functional/org/jboss/cache/transaction 
                        ConcurrentBankTest.java
  Log:
  Partially migrated to new configurators
  
  Revision  Changes    Path
  1.5       +3 -4      JBossCache/tests/functional/org/jboss/cache/transaction/ConcurrentBankTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: ConcurrentBankTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/transaction/ConcurrentBankTest.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -b -r1.4 -r1.5
  --- ConcurrentBankTest.java	20 Jul 2006 09:03:55 -0000	1.4
  +++ ConcurrentBankTest.java	20 Jul 2006 11:14:18 -0000	1.5
  @@ -6,8 +6,8 @@
   import org.apache.commons.logging.Log;
   import org.apache.commons.logging.LogFactory;
   import org.jboss.cache.CacheException;
  -import org.jboss.cache.PropertyConfigurator;
   import org.jboss.cache.TreeCache;
  +import org.jboss.cache.factories.XmlConfigurationParser;
   import org.jboss.cache.lock.IsolationLevel;
   import org.jboss.cache.lock.TimeoutException;
   import org.jboss.cache.misc.TestingUtil;
  @@ -27,7 +27,7 @@
    *
    * @author <a href="mailto:spohl at users.sourceforge.net">Stefan Pohl</a>
    * @author Ben Wang
  - * @version $Revision: 1.4 $
  + * @version $Revision: 1.5 $
    *
    */
   public class ConcurrentBankTest extends TestCase {
  @@ -65,8 +65,7 @@
   
         cache = new TreeCache();
   
  -      PropertyConfigurator config = new PropertyConfigurator();
  -      config.configure(cache, "META-INF/local-lru-eviction-service.xml");
  +      cache.setConfiguration(new XmlConfigurationParser().parseFile("META-INF/local-lru-eviction-service.xml"));
   
         // XML file above only sets REPEATABLE-READ
         cache.getConfiguration().setIsolationLevel(IsolationLevel.SERIALIZABLE);
  
  
  



More information about the jboss-cvs-commits mailing list