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

Vladmir Blagojevic vladimir.blagojevic at jboss.com
Wed Jan 10 11:58:43 EST 2007


  User: vblagojevic
  Date: 07/01/10 11:58:43

  Modified:    tests/functional/org/jboss/cache/marshall 
                        AsyncReplTest.java
  Log:
  JBCACHE-840 (work in progress)
  
  Revision  Changes    Path
  1.14      +4 -2      JBossCache/tests/functional/org/jboss/cache/marshall/AsyncReplTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: AsyncReplTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/marshall/AsyncReplTest.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -b -r1.13 -r1.14
  --- AsyncReplTest.java	30 Dec 2006 17:49:57 -0000	1.13
  +++ AsyncReplTest.java	10 Jan 2007 16:58:43 -0000	1.14
  @@ -14,6 +14,8 @@
   import org.apache.commons.logging.LogFactory;
   import org.jboss.cache.CacheImpl;
   import org.jboss.cache.Fqn;
  +import org.jboss.cache.config.Configuration.CacheMode;
  +import org.jboss.cache.factories.UnitTestCacheFactory;
   import org.jboss.cache.factories.XmlConfigurationParser;
   import org.jboss.cache.marshall.data.Address;
   import org.jboss.cache.marshall.data.Person;
  @@ -29,7 +31,7 @@
    * Test marshalling for async mode.
    *
    * @author Ben Wang
  - * @version $Revision: 1.13 $
  + * @version $Revision: 1.14 $
    */
   public class AsyncReplTest extends RegionBasedMarshallingTestBase
   {
  @@ -63,7 +65,7 @@
      private CacheImpl createCache(String name) throws Exception
      {
         CacheImpl cache = new CacheImpl();
  -      cache.setConfiguration(new XmlConfigurationParser().parseFile("META-INF/replAsync-service.xml"));
  +      cache.setConfiguration(UnitTestCacheFactory.createConfiguration(CacheMode.REPL_ASYNC));
         cache.getConfiguration().setClusterName(name);
         // Use marshaller
         cache.getConfiguration().setUseRegionBasedMarshalling(true);
  
  
  



More information about the jboss-cvs-commits mailing list