[jboss-cvs] JBossCache/tests/functional/org/jboss/cache/options/cachemodelocal ...
Manik Surtani
msurtani at jboss.com
Wed Sep 6 11:30:59 EDT 2006
User: msurtani
Date: 06/09/06 11:30:59
Modified: tests/functional/org/jboss/cache/options/cachemodelocal
CacheModeLocalTestBase.java
Log:
Removed TreeCache dependency on ServiceMBeanSupport
Revision Changes Path
1.6 +277 -275 JBossCache/tests/functional/org/jboss/cache/options/cachemodelocal/CacheModeLocalTestBase.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: CacheModeLocalTestBase.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/options/cachemodelocal/CacheModeLocalTestBase.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- CacheModeLocalTestBase.java 18 Aug 2006 15:40:41 -0000 1.5
+++ CacheModeLocalTestBase.java 6 Sep 2006 15:30:59 -0000 1.6
@@ -19,7 +19,7 @@
/**
* Tests the cache mode local override in various scenarios. To be subclassed to test REPL_SYNC, REPL_ASYNC, INVALIDATION_SYNC, INVALIDATION_ASYNC for Opt and Pess locking.
- *
+ * <p/>
* Option.setCacheModeLocal() only applies to put() and remove() methods.
*
* @author <a href="mailto:manik at jboss.org">Manik Surtani (manik at jboss.org)</a>
@@ -29,7 +29,9 @@
// to be subclassed.
protected Configuration.CacheMode cacheMode;
protected String nodeLockingScheme;
- /** set this to true if the implementing class plans to use an invalidating cache mode **/
+ /**
+ * set this to true if the implementing class plans to use an invalidating cache mode *
+ */
protected boolean isInvalidation;
private TreeCache cache1;
@@ -49,9 +51,9 @@
cache1.getConfiguration().setClusterName("test");
cache1.getConfiguration().setInitialStateRetrievalTimeout(1000);
cache1.getConfiguration().setTransactionManagerLookupClass("org.jboss.cache.DummyTransactionManagerLookup");
- cache1.getConfiguration().setNodeLockingScheme( nodeLockingScheme );
- cache1.getConfiguration().setCacheMode( cacheMode );
- cache1.startService();
+ cache1.getConfiguration().setNodeLockingScheme(nodeLockingScheme);
+ cache1.getConfiguration().setCacheMode(cacheMode);
+ cache1.start();
cache2 = new TreeCache();
cache2.getConfiguration().setClusterName("test");
@@ -59,26 +61,26 @@
cache2.getConfiguration().setTransactionManagerLookupClass("org.jboss.cache.DummyTransactionManagerLookup");
cache2.getConfiguration().setNodeLockingScheme(nodeLockingScheme);
cache2.getConfiguration().setCacheMode(cacheMode);
- cache2.startService();
+ cache2.start();
localOverride = new Option();
defaultCacheMode = new Option();
- localOverride.setCacheModeLocal( true );
- defaultCacheMode.setCacheModeLocal( false );
+ localOverride.setCacheModeLocal(true);
+ defaultCacheMode.setCacheModeLocal(false);
}
protected void tearDown()
{
if (cache1 != null)
{
- cache1.stopService();
+ cache1.stop();
cache1 = null;
}
if (cache2 != null)
{
- cache2.stopService();
+ cache2.stop();
cache2 = null;
}
}
More information about the jboss-cvs-commits
mailing list