[jboss-cvs] JBossCache/tests/perf/org/jboss/cache/loader ...
Manik Surtani
msurtani at jboss.com
Thu Jul 20 04:05:19 EDT 2006
User: msurtani
Date: 06/07/20 04:05:19
Modified: tests/perf/org/jboss/cache/loader
JDBCCacheLoaderPerfTest.java
Log:
Fixed some broken UTs to use the new xml parsers, cache factories, etc.
Revision Changes Path
1.3 +3 -3 JBossCache/tests/perf/org/jboss/cache/loader/JDBCCacheLoaderPerfTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: JDBCCacheLoaderPerfTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/perf/org/jboss/cache/loader/JDBCCacheLoaderPerfTest.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- JDBCCacheLoaderPerfTest.java 5 May 2006 12:58:44 -0000 1.2
+++ JDBCCacheLoaderPerfTest.java 20 Jul 2006 08:05:18 -0000 1.3
@@ -40,8 +40,8 @@
{
if (cache != null) tearDown();
cache = new TreeCache();
- cache.setCacheMode("local");
- cache.setTransactionManagerLookupClass("org.jboss.cache.DummyTransactionManagerLookup");
+ cache.getConfiguration().setCacheMode("local");
+ cache.getConfiguration().setTransactionManagerLookupClass("org.jboss.cache.DummyTransactionManagerLookup");
configureCache();
cache.startService();
}
@@ -77,7 +77,7 @@
"cache.jdbc.user=" + prop.getProperty("cache.jdbc.user") + "\n" +
"cache.jdbc.password=" + prop.getProperty("cache.jdbc.password") + "\n" +
"cache.jdbc.node.type=" + prop.getProperty("cache.jdbc.node.type");
- cache.setCacheLoaderConfiguration( getSingleCacheLoaderConfig("", "org.jboss.cache.loader.JDBCCacheLoader", props, false, true, false) );
+ cache.getConfiguration().setCacheLoaderConfiguration( getSingleCacheLoaderConfig("", "org.jboss.cache.loader.JDBCCacheLoader", props, false, true, false) );
}
public void testPut() throws Exception
More information about the jboss-cvs-commits
mailing list