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

Manik Surtani msurtani at jboss.com
Thu Jul 20 05:03:54 EDT 2006


  User: msurtani
  Date: 06/07/20 05:03:54

  Modified:    tests/functional/org/jboss/cache/options 
                        FailSilentlyTest.java
  Log:
  Fixed some broken UTs to use the new xml parsers, cache factories, etc.
  
  Revision  Changes    Path
  1.3       +4 -3      JBossCache/tests/functional/org/jboss/cache/options/FailSilentlyTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: FailSilentlyTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/options/FailSilentlyTest.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -b -r1.2 -r1.3
  --- FailSilentlyTest.java	28 Nov 2005 15:55:59 -0000	1.2
  +++ FailSilentlyTest.java	20 Jul 2006 09:03:54 -0000	1.3
  @@ -10,6 +10,7 @@
   import org.jboss.cache.TreeCache;
   import org.jboss.cache.Fqn;
   import org.jboss.cache.config.Option;
  +import org.jboss.cache.config.Configuration;
   
   import javax.transaction.TransactionManager;
   import javax.transaction.Transaction;
  @@ -35,9 +36,9 @@
           if (cache != null) tearDown();
           cache = new TreeCache();
           // very short acquisition timeout
  -        cache.setLockAcquisitionTimeout(100);
  -        cache.setTransactionManagerLookupClass("org.jboss.cache.DummyTransactionManagerLookup");
  -        cache.setCacheMode(TreeCache.LOCAL);
  +        cache.getConfiguration().setLockAcquisitionTimeout(100);
  +        cache.getConfiguration().setTransactionManagerLookupClass("org.jboss.cache.DummyTransactionManagerLookup");
  +        cache.getConfiguration().setCacheMode(Configuration.CacheMode.LOCAL);
           cache.startService();
           manager = cache.getTransactionManager();
   
  
  
  



More information about the jboss-cvs-commits mailing list