[jboss-cvs] JBossCache/tests-50/functional/org/jboss/cache/pojo/statetransfer ...

Brian Stansberry brian.stansberry at jboss.com
Wed Oct 25 00:51:38 EDT 2006


  User: bstansberry
  Date: 06/10/25 00:51:38

  Modified:    tests-50/functional/org/jboss/cache/pojo/statetransfer 
                        StateTransferAopTestBase.java
  Log:
  Handle parsing of config XML in XmlConfigurationParser 
  
  Revision  Changes    Path
  1.4       +6 -4      JBossCache/tests-50/functional/org/jboss/cache/pojo/statetransfer/StateTransferAopTestBase.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: StateTransferAopTestBase.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests-50/functional/org/jboss/cache/pojo/statetransfer/StateTransferAopTestBase.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -b -r1.3 -r1.4
  --- StateTransferAopTestBase.java	16 Oct 2006 09:16:40 -0000	1.3
  +++ StateTransferAopTestBase.java	25 Oct 2006 04:51:38 -0000	1.4
  @@ -20,6 +20,7 @@
   import org.jboss.cache.pojo.PojoCacheFactory;
   import org.jboss.cache.pojo.test.Address;
   import org.jboss.cache.pojo.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;
  @@ -39,7 +40,7 @@
    * Tests state transfer in PojoCache.
    *
    * @author <a href="mailto://brian.stansberry@jboss.com">Brian Stansberry</a>
  - * @version $Revision: 1.3 $
  + * @version $Revision: 1.4 $
    */
   public abstract class StateTransferAopTestBase extends TestCase
   {
  @@ -663,11 +664,11 @@
         cleanFile(file);
         file.mkdir();
         tmp_location = escapeWindowsPath(tmp_location);
  -      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" +
  @@ -685,7 +686,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