[jboss-cvs] JBossCache/tests/functional/org/jboss/cache/aop/statetransfer ...
Brian Stansberry
brian.stansberry at jboss.com
Wed Oct 25 00:50:19 EDT 2006
User: bstansberry
Date: 06/10/25 00:50:19
Modified: tests/functional/org/jboss/cache/aop/statetransfer
StateTransferAopTestBase.java
Log:
Handle parsing of config XML in XmlConfigurationParser
Revision Changes Path
1.18 +6 -4 JBossCache/tests/functional/org/jboss/cache/aop/statetransfer/StateTransferAopTestBase.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: StateTransferAopTestBase.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/aop/statetransfer/StateTransferAopTestBase.java,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -b -r1.17 -r1.18
--- StateTransferAopTestBase.java 6 Sep 2006 15:30:56 -0000 1.17
+++ StateTransferAopTestBase.java 25 Oct 2006 04:50:19 -0000 1.18
@@ -17,6 +17,7 @@
import org.jboss.cache.aop.PojoCache;
import org.jboss.cache.aop.test.Address;
import org.jboss.cache.aop.test.Person;
+import org.jboss.cache.config.CacheLoaderConfig;
import org.jboss.cache.config.Configuration;
import org.jboss.cache.factories.XmlConfigurationParser;
import org.jboss.cache.loader.CacheLoader;
@@ -657,13 +658,13 @@
tmp_location = escapeWindowsPath(tmp_location);
if (useExtended)
- c.setCacheLoaderConfiguration(getCacheLoaderConfig("org.jboss.cache.loader.FileExtendedCacheLoader", tmp_location));
+ c.setCacheLoaderConfig(getCacheLoaderConfig("org.jboss.cache.loader.FileExtendedCacheLoader", tmp_location));
else
- c.setCacheLoaderConfiguration(getCacheLoaderConfig("org.jboss.cache.loader.FileCacheLoader", tmp_location));
+ c.setCacheLoaderConfig(getCacheLoaderConfig("org.jboss.cache.loader.FileCacheLoader", tmp_location));
}
- protected Element getCacheLoaderConfig(String cl, String loc) throws Exception
+ protected CacheLoaderConfig getCacheLoaderConfig(String cl, String loc) throws Exception
{
String xml = " <config>\n" +
" \n" +
@@ -681,7 +682,8 @@
" </cacheloader>\n" +
" \n" +
" </config>";
- return XmlHelper.stringToElement(xml);
+ Element element = XmlHelper.stringToElement(xml);
+ return XmlConfigurationParser.parseCacheLoaderConfig(element);
}
protected String getTempLocation(String cacheID)
More information about the jboss-cvs-commits
mailing list