[jboss-cvs] JBossCache/tests/functional/org/jboss/cache/mgmt ...
Manik Surtani
msurtani at jboss.com
Thu Jul 20 06:54:00 EDT 2006
User: msurtani
Date: 06/07/20 06:54:00
Modified: tests/functional/org/jboss/cache/mgmt MgmtCoreTest.java
Log:
Fixed some broken UTs to use the new xml parsers, cache factories, etc.
Revision Changes Path
1.4 +7 -7 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.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- MgmtCoreTest.java 24 Feb 2006 19:41:03 -0000 1.3
+++ MgmtCoreTest.java 20 Jul 2006 10:54:00 -0000 1.4
@@ -1,20 +1,20 @@
package org.jboss.cache.mgmt;
-import java.util.HashMap;
-import java.util.List;
-
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
-
import org.jboss.cache.Fqn;
import org.jboss.cache.TreeCache;
+import org.jboss.cache.config.Configuration;
import org.jboss.cache.interceptors.CacheMgmtInterceptor;
+import java.util.HashMap;
+import java.util.List;
+
/**
* Simple functional tests for CacheMgmtInterceptor
* @author Jerry Gauthier
- * @version $Id: MgmtCoreTest.java,v 1.3 2006/02/24 19:41:03 jerrygauth Exp $
+ * @version $Id: MgmtCoreTest.java,v 1.4 2006/07/20 10:54:00 msurtani Exp $
*/
public class MgmtCoreTest extends TestCase
{
@@ -29,8 +29,8 @@
{
super.setUp();
cache = new TreeCache();
- cache.setCacheMode(TreeCache.LOCAL);
- cache.setUseInterceptorMbeans(true);
+ cache.getConfiguration().setCacheMode(Configuration.CacheMode.LOCAL);
+ cache.getConfiguration().setUseInterceptorMbeans(true);
cache.createService();
cache.startService();
}
More information about the jboss-cvs-commits
mailing list