[jboss-cvs] JBossCache/tests/perf/org/jboss/cache/aop ...
Manik Surtani
msurtani at jboss.com
Thu Jul 20 07:48:26 EDT 2006
User: msurtani
Date: 06/07/20 07:48:26
Modified: tests/perf/org/jboss/cache/aop LocalMapPerfAopTest.java
LocalPerfAopTest.java
ReplicatedSyncMapPerfAopTest.java
ReplicatedSyncPerfAopTest.java
Log:
migrated to new configurators
Revision Changes Path
1.4 +4 -4 JBossCache/tests/perf/org/jboss/cache/aop/LocalMapPerfAopTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: LocalMapPerfAopTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/perf/org/jboss/cache/aop/LocalMapPerfAopTest.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- LocalMapPerfAopTest.java 20 Jul 2006 09:03:55 -0000 1.3
+++ LocalMapPerfAopTest.java 20 Jul 2006 11:48:26 -0000 1.4
@@ -12,8 +12,8 @@
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
-import org.jboss.cache.PropertyConfigurator;
import org.jboss.cache.config.Configuration;
+import org.jboss.cache.factories.XmlConfigurationParser;
import org.jboss.cache.lock.IsolationLevel;
import org.jboss.cache.lock.LockStrategyFactory;
import org.jboss.cache.transaction.DummyTransactionManager;
@@ -31,7 +31,7 @@
/**
* Local mode performance test for TreeCache.
*
- * @version $Revision: 1.3 $
+ * @version $Revision: 1.4 $
* @author<a href="mailto:bwang at jboss.org">Ben Wang</a> May 20 2003
*/
public class LocalMapPerfAopTest extends TestCase
@@ -117,8 +117,8 @@
{
cachingMode_ = caching_mode;
cache_ = new PojoCache();
- PropertyConfigurator config = new PropertyConfigurator();
- config.configure(cache_, "META-INF/local-service.xml"); // read in generic local xml
+
+ cache_.setConfiguration(new XmlConfigurationParser().parseFile("META-INF/local-service.xml"));
cache_.getConfiguration().setTransactionManagerLookupClass("org.jboss.cache.DummyTransactionManagerLookup");
cache_.startService();
}
1.4 +3 -4 JBossCache/tests/perf/org/jboss/cache/aop/LocalPerfAopTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: LocalPerfAopTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/perf/org/jboss/cache/aop/LocalPerfAopTest.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- LocalPerfAopTest.java 20 Jul 2006 10:32:18 -0000 1.3
+++ LocalPerfAopTest.java 20 Jul 2006 11:48:26 -0000 1.4
@@ -11,8 +11,8 @@
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
-import org.jboss.cache.PropertyConfigurator;
import org.jboss.cache.config.Configuration;
+import org.jboss.cache.factories.XmlConfigurationParser;
import org.jboss.cache.lock.IsolationLevel;
import org.jboss.cache.lock.LockStrategyFactory;
import org.jboss.cache.transaction.DummyTransactionManager;
@@ -28,7 +28,7 @@
/**
* Local mode performance test for PojoCache.
*
- * @version $Revision: 1.3 $
+ * @version $Revision: 1.4 $
* @author<a href="mailto:bwang at jboss.org">Ben Wang</a> May 20 2003
*/
public class LocalPerfAopTest extends TestCase
@@ -88,8 +88,7 @@
{
cachingMode_ = caching_mode;
cache_ = new PojoCache();
- PropertyConfigurator config = new PropertyConfigurator();
- config.configure(cache_, "META-INF/local-service.xml"); // read in generic local xml
+ cache_.setConfiguration(new XmlConfigurationParser().parseFile("META-INF/local-service.xml"));
cache_.getConfiguration().setTransactionManagerLookupClass("org.jboss.cache.JBossTransactionManagerLookup");
cache_.startService();
}
1.4 +3 -4 JBossCache/tests/perf/org/jboss/cache/aop/ReplicatedSyncMapPerfAopTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: ReplicatedSyncMapPerfAopTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/perf/org/jboss/cache/aop/ReplicatedSyncMapPerfAopTest.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- ReplicatedSyncMapPerfAopTest.java 20 Jul 2006 10:32:18 -0000 1.3
+++ ReplicatedSyncMapPerfAopTest.java 20 Jul 2006 11:48:26 -0000 1.4
@@ -12,8 +12,8 @@
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
-import org.jboss.cache.PropertyConfigurator;
import org.jboss.cache.config.Configuration;
+import org.jboss.cache.factories.XmlConfigurationParser;
import org.jboss.cache.lock.IsolationLevel;
import org.jboss.cache.lock.LockStrategyFactory;
import org.jboss.cache.transaction.DummyTransactionManager;
@@ -31,7 +31,7 @@
/**
* Local mode performance test for TreeCache.
*
- * @version $Revision: 1.3 $
+ * @version $Revision: 1.4 $
* @author<a href="mailto:bwang at jboss.org">Ben Wang</a> May 20 2003
*/
public class ReplicatedSyncMapPerfAopTest extends TestCase
@@ -147,8 +147,7 @@
{
cachingMode_ = caching_mode;
cache_ = new PojoCache();
- PropertyConfigurator config = new PropertyConfigurator();
- config.configure(cache_, "META-INF/replSync-service.xml"); // read in generic replSync xml
+ cache_.setConfiguration(new XmlConfigurationParser().parseFile("META-INF/replSync-service.xml"));
cache_.getConfiguration().setTransactionManagerLookupClass("org.jboss.cache.DummyTransactionManagerLookup");
cache_.startService();
// org.jgroups.log.Trace.init();
1.4 +3 -4 JBossCache/tests/perf/org/jboss/cache/aop/ReplicatedSyncPerfAopTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: ReplicatedSyncPerfAopTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/perf/org/jboss/cache/aop/ReplicatedSyncPerfAopTest.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- ReplicatedSyncPerfAopTest.java 20 Jul 2006 09:03:55 -0000 1.3
+++ ReplicatedSyncPerfAopTest.java 20 Jul 2006 11:48:26 -0000 1.4
@@ -12,9 +12,9 @@
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
-import org.jboss.cache.PropertyConfigurator;
import org.jboss.cache.TreeCache;
import org.jboss.cache.config.Configuration;
+import org.jboss.cache.factories.XmlConfigurationParser;
import org.jboss.cache.lock.IsolationLevel;
import org.jboss.cache.transaction.DummyTransactionManager;
@@ -29,7 +29,7 @@
/**
* Replicated synchronous mode performance test for transactional TreeCache.
*
- * @version $Revision: 1.3 $
+ * @version $Revision: 1.4 $
* @author<a href="mailto:bwang at jboss.org">Ben Wang</a> May 20 2003
*/
public class ReplicatedSyncPerfAopTest extends TestCase
@@ -89,8 +89,7 @@
PojoCache createCache() throws Exception
{
PojoCache cache = new PojoCache();
- PropertyConfigurator config = new PropertyConfigurator();
- config.configure(cache, "META-INF/replSync-service.xml"); // use generic syncRepl xml
+ cache.setConfiguration(new XmlConfigurationParser().parseFile("META-INF/replSync-service.xml"));
cache.getConfiguration().setIsolationLevel(IsolationLevel.REPEATABLE_READ);
cache.getConfiguration().setTransactionManagerLookupClass("org.jboss.cache.JBossTransactionManagerLookup");
return cache;
More information about the jboss-cvs-commits
mailing list