[jboss-cvs] JBossCache/tests/stress/org/jboss/cache ...

Manik Surtani msurtani at jboss.com
Fri Sep 15 11:11:35 EDT 2006


  User: msurtani
  Date: 06/09/15 11:11:35

  Modified:    tests/stress/org/jboss/cache  EvictionLocalStressTest.java
  Log:
  - better exception message when changing an immutable config element at runtime
  - updated tests that change certain elements dynamically.
  
  Revision  Changes    Path
  1.7       +3 -16     JBossCache/tests/stress/org/jboss/cache/EvictionLocalStressTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: EvictionLocalStressTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/stress/org/jboss/cache/EvictionLocalStressTest.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -b -r1.6 -r1.7
  --- EvictionLocalStressTest.java	6 Sep 2006 15:31:02 -0000	1.6
  +++ EvictionLocalStressTest.java	15 Sep 2006 15:11:35 -0000	1.7
  @@ -30,7 +30,7 @@
    * Local mode stress test for TreeCache.
    *
    * @author <a href="mailto:bwang at jboss.org">Ben Wang</a> May 20 2003
  - * @version $Id: EvictionLocalStressTest.java,v 1.6 2006/09/06 15:31:02 msurtani Exp $
  + * @version $Id: EvictionLocalStressTest.java,v 1.7 2006/09/15 15:11:35 msurtani Exp $
    */
   public class EvictionLocalStressTest extends TestCase
   {
  @@ -93,6 +93,8 @@
         cache_ = new TreeCache();
         cache_.setConfiguration(new XmlConfigurationParser().parseFile("META-INF/local-lru-eviction-service.xml")); // read in generic local xml
         cache_.getConfiguration().setTransactionManagerLookupClass("org.jboss.cache.DummyTransactionManagerLookup");
  +      LockStrategyFactory.setIsolationLevel(IsolationLevel.REPEATABLE_READ);
  +      cache_.getConfiguration().setIsolationLevel(IsolationLevel.REPEATABLE_READ);
         cache_.getConfiguration().setLockAcquisitionTimeout(10000);
         cache_.create();
         cache_.start();
  @@ -104,23 +106,8 @@
         cache_ = null;
      }
   
  -   protected void setLevelRW()
  -   {
  -      log("set lock level to RWUpgrade ...");
  -      LockStrategyFactory.setIsolationLevel(IsolationLevel.REPEATABLE_READ);
  -      cache_.getConfiguration().setIsolationLevel(IsolationLevel.REPEATABLE_READ);
  -   }
  -
  -   protected void setLevelSerial()
  -   {
  -      log("set lock level to SimpleLock ...");
  -      LockStrategyFactory.setIsolationLevel(IsolationLevel.SERIALIZABLE);
  -      cache_.getConfiguration().setIsolationLevel(IsolationLevel.SERIALIZABLE);
  -   }
  -
      public void testAllTx_RWLock() throws Exception
      {
  -      setLevelRW();
         allTx();
      }
   
  
  
  



More information about the jboss-cvs-commits mailing list