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

Manik Surtani msurtani at jboss.com
Mon Dec 18 07:27:52 EST 2006


  User: msurtani
  Date: 06/12/18 07:27:52

  Modified:    tests/functional/org/jboss/cache/marshall  SyncReplTest.java
  Log:
  refactored
  
  Revision  Changes    Path
  1.13      +20 -19    JBossCache/tests/functional/org/jboss/cache/marshall/SyncReplTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: SyncReplTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/marshall/SyncReplTest.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -b -r1.12 -r1.13
  --- SyncReplTest.java	5 Dec 2006 23:07:25 -0000	1.12
  +++ SyncReplTest.java	18 Dec 2006 12:27:52 -0000	1.13
  @@ -11,7 +11,6 @@
   
   import junit.framework.Test;
   import junit.framework.TestSuite;
  -
   import org.jboss.cache.Fqn;
   import org.jboss.cache.TreeCache;
   import org.jboss.cache.config.Configuration;
  @@ -31,7 +30,7 @@
    * Test case for marshalling using Sync mode.
    *
    * @author Ben Wang
  - * @version $Revision: 1.12 $
  + * @version $Revision: 1.13 $
    */
   public class SyncReplTest extends RegionBasedMarshallingTestBase
   {
  @@ -239,9 +238,10 @@
            assertFalse("cache2 deserialized with scoped classloader", ben2 instanceof Person);
            assertFalse("cache2 deserialized with cache2 classloader", scopedBen1.equals(ben2));
            assertEquals("scopedBen deserialized properly", scopedBen2, ben2);
  -      } catch (Exception ex)
  +      }
  +      catch (Exception ex)
         {
  -         fail("Test fails with exception " +ex);
  +         fail("Test fails with exception " + ex);
         }
   
      }
  @@ -372,22 +372,23 @@
         {
            Object val = cache2.get(new Fqn(base, custom2), "key");
            assertEquals("value", val);
  -      } catch (Exception ex)
  +      }
  +      catch (Exception ex)
         {
  -         fail("Test fails with exception " +ex);
  +         fail("Test fails with exception " + ex);
         }      
      }
   
      Transaction beginTransaction() throws SystemException, NotSupportedException 
      {
  -      DummyTransactionManager mgr=DummyTransactionManager.getInstance();
  +      DummyTransactionManager mgr = DummyTransactionManager.getInstance();
         mgr.begin();
         return mgr.getTransaction();
      }
      
      protected Object getPersonFromClassloader(ClassLoader cl) throws Exception
      {
  -      Class clazz = cl.loadClass("org.jboss.cache.marshall.Person");
  +      Class clazz = cl.loadClass(PERSON_CLASSNAME);
         return clazz.newInstance();
      }
   
  
  
  



More information about the jboss-cvs-commits mailing list