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

Vladmir Blagojevic vladimir.blagojevic at jboss.com
Wed Sep 13 11:56:47 EDT 2006


  User: vblagojevic
  Date: 06/09/13 11:56:47

  Modified:    tests/functional/org/jboss/cache/statetransfer 
                        VersionedTestBase.java
  Log:
  test cacheloader compatibility thoroughly
  
  Revision  Changes    Path
  1.15      +49 -16    JBossCache/tests/functional/org/jboss/cache/statetransfer/VersionedTestBase.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: VersionedTestBase.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/statetransfer/VersionedTestBase.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -b -r1.14 -r1.15
  --- VersionedTestBase.java	12 Sep 2006 20:16:55 -0000	1.14
  +++ VersionedTestBase.java	13 Sep 2006 15:56:47 -0000	1.15
  @@ -70,11 +70,10 @@
      
      /**
       * These tests ensure that http://jira.jboss.com/jira/browse/JBCACHE-738
  -    * compatibility between cacheloaders is maintained. In the tests below first 
  -    * cacheloader parameter is a state producer and second cacheloader parameter 
  -    * is a state receiver. By having each cacheloader be a state receiver and a state 
  -    * producer and by testing various combinations we ensure complete cacheloader 
  -    * compatibility.
  +    * compatibility between non-delegating cacheloaders is maintained. In the tests 
  +    * below first cacheloader parameter is the state producer and the second cacheloader 
  +    * parameter is the state receiver. By having each cacheloader be a state receiver 
  +    * and a state producer we ensure complete cacheloader compatibility.
       */
      public void testCompatibilityBetweenFileAndJbdmCacheLoaders() throws Exception
      {
  @@ -88,19 +87,52 @@
                 "org.jboss.cache.loader.JDBCCacheLoader", false);
      }
   
  +   public void testCompatibilityBetweenFileAndBdbjeCacheLoaders() throws Exception
  +   {
  +     
  +      initialStateTferWithLoaderTest("org.jboss.cache.loader.FileCacheLoader",
  +              "org.jboss.cache.loader.bdbje.BdbjeCacheLoader", false);
  +   }
  +
      public void testCompatibilityBetweenJbdmAndJDBCCacheLoaders() throws Exception
      {
         initialStateTferWithLoaderTest("org.jboss.cache.loader.jdbm.JdbmCacheLoader",
                 "org.jboss.cache.loader.JDBCCacheLoader", false);
      }
   
  -   public void testCompatibilityBetweenFileAndBdbjeCacheLoaders() throws Exception
  +   public void testCompatibilityBetweenJbdmAndBdbjeCacheLoaders() throws Exception
      {
  +      initialStateTferWithLoaderTest("org.jboss.cache.loader.jdbm.JdbmCacheLoader",
  +              "org.jboss.cache.loader.bdbje.BdbjeCacheLoader", false);
  +   }
        
  -      initialStateTferWithLoaderTest("org.jboss.cache.loader.FileCacheLoader",
  +   public void testCompatibilityBetweenJbdmAndFileCacheLoaders() throws Exception
  +   {
  +      initialStateTferWithLoaderTest("org.jboss.cache.loader.jdbm.JdbmCacheLoader",
  +              "org.jboss.cache.loader.FileCacheLoader", false);
  +   }
  +   
  +   public void testCompatibilityBetweenJDBCAndBdjeCacheLoaders() throws Exception
  +   {
  +     
  +      initialStateTferWithLoaderTest("org.jboss.cache.loader.JDBCCacheLoader",
                 "org.jboss.cache.loader.bdbje.BdbjeCacheLoader", false);
      }
      
  +   public void testCompatibilityBetweenJDBCAndFileCacheLoaders() throws Exception
  +   {
  +     
  +      initialStateTferWithLoaderTest("org.jboss.cache.loader.JDBCCacheLoader",
  +            "org.jboss.cache.loader.FileCacheLoader", false);
  +   }
  +   
  +   public void testCompatibilityBetweenJDBCAndJbdmCacheLoaders() throws Exception
  +   {
  +     
  +      initialStateTferWithLoaderTest("org.jboss.cache.loader.JDBCCacheLoader",
  +            "org.jboss.cache.loader.jdbm.JdbmCacheLoader", false);
  +   }   
  +   
      public void testCompatibilityBetweenBdbjeandJDBCCacheLoaders() throws Exception
      {
        
  @@ -108,17 +140,18 @@
               "org.jboss.cache.loader.JDBCCacheLoader", false);
      }
      
  -   public void testCompatibilityBetweenJDBCAndBdjeCacheLoaders() throws Exception
  +   public void testCompatibilityBetweenBdbjeandFileCacheLoaders() throws Exception
      {
        
  -      initialStateTferWithLoaderTest("org.jboss.cache.loader.JDBCCacheLoader",
  -            "org.jboss.cache.loader.bdbje.BdbjeCacheLoader", false);
  +      initialStateTferWithLoaderTest("org.jboss.cache.loader.bdbje.BdbjeCacheLoader",
  +            "org.jboss.cache.loader.FileCacheLoader", false);
      }
      
  -   public void testCompatibilityBetweenJbdmAndBdbjeCacheLoaders() throws Exception
  +   public void testCompatibilityBetweenBdbjeandJbdmCacheLoaders() throws Exception
      {
  -      initialStateTferWithLoaderTest("org.jboss.cache.loader.jdbm.JdbmCacheLoader",
  -              "org.jboss.cache.loader.bdbje.BdbjeCacheLoader", false);
  +     
  +      initialStateTferWithLoaderTest("org.jboss.cache.loader.bdbje.BdbjeCacheLoader",
  +            "org.jboss.cache.loader.jdbm.JdbmCacheLoader", false);
      }
   
      public void testInitialStateTferWithAsyncLoader() throws Exception
  
  
  



More information about the jboss-cvs-commits mailing list