[jboss-cvs] JBossCache/tests/functional/org/jboss/cache/passivation ...
Manik Surtani
msurtani at jboss.com
Thu Jul 20 05:03:54 EDT 2006
User: msurtani
Date: 06/07/20 05:03:54
Modified: tests/functional/org/jboss/cache/passivation
PassivationTestsBase.java
PassivationToBdbjeCacheLoaderTest.java
PassivationToFileCacheLoaderTest.java
PassivationToJDBCCacheLoaderTestCase.java
Log:
Fixed some broken UTs to use the new xml parsers, cache factories, etc.
Revision Changes Path
1.14 +4 -4 JBossCache/tests/functional/org/jboss/cache/passivation/PassivationTestsBase.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: PassivationTestsBase.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/passivation/PassivationTestsBase.java,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -b -r1.13 -r1.14
--- PassivationTestsBase.java 8 Apr 2006 05:24:39 -0000 1.13
+++ PassivationTestsBase.java 20 Jul 2006 09:03:54 -0000 1.14
@@ -23,7 +23,7 @@
* Base tests for passivation using any of the cache loaders
*
* @author <a href="mailto:{hmesha at novell.com}">{Hany Mesha}</a>
- * @version $Id: PassivationTestsBase.java,v 1.13 2006/04/08 05:24:39 genman Exp $
+ * @version $Id: PassivationTestsBase.java,v 1.14 2006/07/20 09:03:54 msurtani Exp $
*/
abstract public class PassivationTestsBase extends TestCase {
@@ -56,11 +56,11 @@
log.debug("Testing " + getName());
log.debug("");
cache=new TreeCache();
- cache.setCacheMode("local");
+ cache.getConfiguration().setCacheMode("local");
configureCache();
// cache.setCacheLoaderPreload("/1/2/3/4/5/d");
- cache.setTransactionManagerLookupClass("org.jboss.cache.DummyTransactionManagerLookup");
- cache.setIsolationLevel(IsolationLevel.SERIALIZABLE);
+ cache.getConfiguration().setTransactionManagerLookupClass("org.jboss.cache.DummyTransactionManagerLookup");
+ cache.getConfiguration().setIsolationLevel(IsolationLevel.SERIALIZABLE);
cache.createService();
cache.startService();
loader=cache.getCacheLoader();
1.11 +2 -2 JBossCache/tests/functional/org/jboss/cache/passivation/PassivationToBdbjeCacheLoaderTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: PassivationToBdbjeCacheLoaderTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/passivation/PassivationToBdbjeCacheLoaderTest.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -b -r1.10 -r1.11
--- PassivationToBdbjeCacheLoaderTest.java 13 Jan 2006 14:42:47 -0000 1.10
+++ PassivationToBdbjeCacheLoaderTest.java 20 Jul 2006 09:03:54 -0000 1.11
@@ -13,7 +13,7 @@
* Berkeley DB instead of a file-based CacheLoader
*
* @author <a href="mailto:{hmesha at novell.com}">{Hany Mesha}</a>
- * @version $Id: PassivationToBdbjeCacheLoaderTest.java,v 1.10 2006/01/13 14:42:47 bela Exp $
+ * @version $Id: PassivationToBdbjeCacheLoaderTest.java,v 1.11 2006/07/20 09:03:54 msurtani Exp $
*/
public class PassivationToBdbjeCacheLoaderTest extends PassivationTestsBase {
@@ -45,7 +45,7 @@
}
}
- cache.setCacheLoaderConfiguration(getCacheLoaderConfig(tmp_location));
+ cache.getConfiguration().setCacheLoaderConfiguration(getCacheLoaderConfig(tmp_location));
}
1.6 +2 -2 JBossCache/tests/functional/org/jboss/cache/passivation/PassivationToFileCacheLoaderTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: PassivationToFileCacheLoaderTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/passivation/PassivationToFileCacheLoaderTest.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- PassivationToFileCacheLoaderTest.java 13 Jan 2006 14:41:32 -0000 1.5
+++ PassivationToFileCacheLoaderTest.java 20 Jul 2006 09:03:54 -0000 1.6
@@ -9,7 +9,7 @@
* tests passivation using file cache loader
*
* @author <a href="mailto:{hmesha at novell.com}">{Hany Mesha}</a>
- * @version $Id: PassivationToFileCacheLoaderTest.java,v 1.5 2006/01/13 14:41:32 bela Exp $
+ * @version $Id: PassivationToFileCacheLoaderTest.java,v 1.6 2006/07/20 09:03:54 msurtani Exp $
*/
public class PassivationToFileCacheLoaderTest extends PassivationTestsBase {
@@ -24,7 +24,7 @@
tmp_location=System.getProperty("jva.io.tmpdir", "/tmp");
}
- cache.setCacheLoaderConfiguration(getCacheLoaderConfig(tmp_location));
+ cache.getConfiguration().setCacheLoaderConfiguration(getCacheLoaderConfig(tmp_location));
}
protected Element getCacheLoaderConfig(String loc) throws Exception
1.5 +2 -2 JBossCache/tests/functional/org/jboss/cache/passivation/PassivationToJDBCCacheLoaderTestCase.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: PassivationToJDBCCacheLoaderTestCase.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/passivation/PassivationToJDBCCacheLoaderTestCase.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- PassivationToJDBCCacheLoaderTestCase.java 10 Jan 2006 23:41:18 -0000 1.4
+++ PassivationToJDBCCacheLoaderTestCase.java 20 Jul 2006 09:03:54 -0000 1.5
@@ -16,7 +16,7 @@
* This test has MySQL hard-coded. To run it, run MySQL first: mysqld -u=root
*
* @author <a href="mailto:{hmesha at novell.com}">{Hany Mesha}</a>
- * @version $Id: PassivationToJDBCCacheLoaderTestCase.java,v 1.4 2006/01/10 23:41:18 msurtani Exp $
+ * @version $Id: PassivationToJDBCCacheLoaderTestCase.java,v 1.5 2006/07/20 09:03:54 msurtani Exp $
*/
public class PassivationToJDBCCacheLoaderTestCase extends PassivationTestsBase
{
@@ -48,7 +48,7 @@
protected void configureCache() throws Exception
{
- cache.setCacheLoaderConfiguration(getCacheLoaderConfig());
+ cache.getConfiguration().setCacheLoaderConfiguration(getCacheLoaderConfig());
}
public static Test suite()
More information about the jboss-cvs-commits
mailing list