[jboss-cvs] JBossCache/tests/functional/org/jboss/cache/mgmt ...
Brian Stansberry
brian.stansberry at jboss.com
Thu Nov 9 21:48:45 EST 2006
User: bstansberry
Date: 06/11/09 21:48:45
Modified: tests/functional/org/jboss/cache/mgmt
PassivationTest.java InvalidationTest.java
TxTest.java CacheLoaderTest.java
NotificationTest.java MgmtCoreTest.java
Log:
Rename config property used to control CacheMgmtInterceptor
Revision Changes Path
1.7 +2 -2 JBossCache/tests/functional/org/jboss/cache/mgmt/PassivationTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: PassivationTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/mgmt/PassivationTest.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- PassivationTest.java 25 Oct 2006 04:50:18 -0000 1.6
+++ PassivationTest.java 10 Nov 2006 02:48:45 -0000 1.7
@@ -21,7 +21,7 @@
* Simple functional tests for ActivationInterceptor and PassivationInterceptor statistics
*
* @author Jerry Gauthier
- * @version $Id: PassivationTest.java,v 1.6 2006/10/25 04:50:18 bstansberry Exp $
+ * @version $Id: PassivationTest.java,v 1.7 2006/11/10 02:48:45 bstansberry Exp $
*/
public class PassivationTest extends TestCase
{
@@ -230,7 +230,7 @@
Configuration c = new Configuration();
c.setCacheMode("LOCAL");
c.setCacheLoaderConfig(getCacheLoaderConfig("location=" + getTempDir()));
- c.setUseMbean(true);
+ c.setExposeManagementStatistics(true);
cache.setConfiguration(c);
cache.create();
cache.start();
1.8 +4 -4 JBossCache/tests/functional/org/jboss/cache/mgmt/InvalidationTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: InvalidationTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/mgmt/InvalidationTest.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -b -r1.7 -r1.8
--- InvalidationTest.java 25 Sep 2006 05:50:05 -0000 1.7
+++ InvalidationTest.java 10 Nov 2006 02:48:45 -0000 1.8
@@ -16,7 +16,7 @@
* Simple functional tests for InvalidationInterceptor statistics
*
* @author Jerry Gauthier
- * @version $Id: InvalidationTest.java,v 1.7 2006/09/25 05:50:05 bwang Exp $
+ * @version $Id: InvalidationTest.java,v 1.8 2006/11/10 02:48:45 bstansberry Exp $
*/
public class InvalidationTest extends TestCase
{
@@ -90,8 +90,8 @@
InvalidationInterceptor mgmt2 = getInvalidationInterceptor(cache2);
assertNotNull("Cache2 InvalidationInterceptor not found.", mgmt2);
- assertTrue("Cache1 not configured to use MBeans", cache1.getConfiguration().isUseMbean());
- assertTrue("Cache2 not configured to use MBeans", cache2.getConfiguration().isUseMbean());
+ assertTrue("Cache1 not configured to use MBeans", cache1.getConfiguration().getExposeManagementStatistics());
+ assertTrue("Cache2 not configured to use MBeans", cache2.getConfiguration().getExposeManagementStatistics());
assertTrue("InvalidationInterceptor on Cache1 not set up to use statistics!", mgmt1.getStatisticsEnabled());
assertTrue("InvalidationInterceptor on Cache2 not set up to use statistics!", mgmt2.getStatisticsEnabled());
@@ -149,7 +149,7 @@
Configuration c = parser.parseFile("META-INF/invalidationSync-service.xml");
cache.setConfiguration(c);
c.setCacheMode(Configuration.CacheMode.INVALIDATION_SYNC);
- c.setUseMbean(true);
+ c.setExposeManagementStatistics(true);
c.setClusterName(clusterName);
cache.create();
cache.start();
1.8 +2 -2 JBossCache/tests/functional/org/jboss/cache/mgmt/TxTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: TxTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/mgmt/TxTest.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -b -r1.7 -r1.8
--- TxTest.java 25 Sep 2006 05:50:05 -0000 1.7
+++ TxTest.java 10 Nov 2006 02:48:45 -0000 1.8
@@ -17,7 +17,7 @@
* Simple functional tests for TxInterceptor statistics
*
* @author Jerry Gauthier
- * @version $Id: TxTest.java,v 1.7 2006/09/25 05:50:05 bwang Exp $
+ * @version $Id: TxTest.java,v 1.8 2006/11/10 02:48:45 bstansberry Exp $
*/
public class TxTest extends TestCase
{
@@ -211,7 +211,7 @@
cache.setConfiguration(new XmlConfigurationParser().parseFile("META-INF/replSync-service.xml"));
cache.getConfiguration().setUseRegionBasedMarshalling(false);
cache.getConfiguration().setCacheMode(Configuration.CacheMode.REPL_SYNC);
- cache.getConfiguration().setUseMbean(true);
+ cache.getConfiguration().setExposeManagementStatistics(true);
cache.getConfiguration().setClusterName(clusterName);
cache.create();
cache.start();
1.9 +2 -2 JBossCache/tests/functional/org/jboss/cache/mgmt/CacheLoaderTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: CacheLoaderTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/mgmt/CacheLoaderTest.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -b -r1.8 -r1.9
--- CacheLoaderTest.java 25 Oct 2006 04:50:19 -0000 1.8
+++ CacheLoaderTest.java 10 Nov 2006 02:48:45 -0000 1.9
@@ -21,7 +21,7 @@
* Simple functional tests for CacheLoaderInterceptor and CacheStoreInterceptor statistics
*
* @author Jerry Gauthier
- * @version $Id: CacheLoaderTest.java,v 1.8 2006/10/25 04:50:19 bstansberry Exp $
+ * @version $Id: CacheLoaderTest.java,v 1.9 2006/11/10 02:48:45 bstansberry Exp $
*/
public class CacheLoaderTest extends TestCase
{
@@ -205,7 +205,7 @@
TreeCache cache = new TreeCache();
cache.getConfiguration().setCacheMode(Configuration.CacheMode.LOCAL);
cache.getConfiguration().setCacheLoaderConfig(getCacheLoaderConfig("location=" + getTempDir()));
- cache.getConfiguration().setUseMbean(true);
+ cache.getConfiguration().setExposeManagementStatistics(true);
cache.create();
cache.start();
return cache;
1.13 +2 -2 JBossCache/tests/functional/org/jboss/cache/mgmt/NotificationTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: NotificationTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/mgmt/NotificationTest.java,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -b -r1.12 -r1.13
--- NotificationTest.java 25 Oct 2006 04:50:19 -0000 1.12
+++ NotificationTest.java 10 Nov 2006 02:48:45 -0000 1.13
@@ -23,7 +23,7 @@
* Functional tests for CacheMgmtInterceptor broadcast of cache event notifications
*
* @author Jerry Gauthier
- * @version $Id: NotificationTest.java,v 1.12 2006/10/25 04:50:19 bstansberry Exp $
+ * @version $Id: NotificationTest.java,v 1.13 2006/11/10 02:48:45 bstansberry Exp $
*/
public class NotificationTest extends TestCase
{
@@ -156,7 +156,7 @@
cache.setConfiguration(new XmlConfigurationParser().parseFile("META-INF/replSync-service.xml"));
cache.getConfiguration().setCacheMode(Configuration.CacheMode.REPL_SYNC);
cache.getConfiguration().setCacheLoaderConfig(getCacheLoaderConfig("location=" + getTempDir()));
- cache.getConfiguration().setUseMbean(true);
+ cache.getConfiguration().setExposeManagementStatistics(true);
cache.getConfiguration().setClusterName(clusterName);
if (optimistic)
{
1.7 +2 -2 JBossCache/tests/functional/org/jboss/cache/mgmt/MgmtCoreTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: MgmtCoreTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/mgmt/MgmtCoreTest.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- MgmtCoreTest.java 25 Sep 2006 05:50:05 -0000 1.6
+++ MgmtCoreTest.java 10 Nov 2006 02:48:45 -0000 1.7
@@ -15,7 +15,7 @@
* Simple functional tests for CacheMgmtInterceptor
*
* @author Jerry Gauthier
- * @version $Id: MgmtCoreTest.java,v 1.6 2006/09/25 05:50:05 bwang Exp $
+ * @version $Id: MgmtCoreTest.java,v 1.7 2006/11/10 02:48:45 bstansberry Exp $
*/
public class MgmtCoreTest extends TestCase
{
@@ -31,7 +31,7 @@
super.setUp();
cache = new TreeCache();
cache.getConfiguration().setCacheMode(Configuration.CacheMode.LOCAL);
- cache.getConfiguration().setUseMbean(true);
+ cache.getConfiguration().setExposeManagementStatistics(true);
cache.create();
cache.start();
}
More information about the jboss-cvs-commits
mailing list