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

Manik Surtani msurtani at jboss.com
Tue Sep 5 09:12:53 EDT 2006


  User: msurtani
  Date: 06/09/05 09:12:53

  Modified:    tests/functional/org/jboss/cache/marshall 
                        TreeCacheMarshallerTestBase.java
  Log:
  Updated to use JBoss Serialization's large string handling
  
  Revision  Changes    Path
  1.2       +8 -8      JBossCache/tests/functional/org/jboss/cache/marshall/TreeCacheMarshallerTestBase.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: TreeCacheMarshallerTestBase.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/marshall/TreeCacheMarshallerTestBase.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -b -r1.1 -r1.2
  --- TreeCacheMarshallerTestBase.java	5 Sep 2006 12:30:26 -0000	1.1
  +++ TreeCacheMarshallerTestBase.java	5 Sep 2006 13:12:53 -0000	1.2
  @@ -147,14 +147,14 @@
   
      public void test64KString() throws Exception
      {
  -      doLargeStringTest((int) Math.pow(2, 16) - 10, false);
  -      doLargeStringTest((int) Math.pow(2, 16) + 10, false);
  +      doLargeStringTest((2 << 15) - 10, false);
  +      doLargeStringTest((2 << 15) + 10, false);
      }
   
      public void test128KString() throws Exception
      {
  -      doLargeStringTest((int) Math.pow(2, 17) - 10, false);
  -      doLargeStringTest((int) Math.pow(2, 17) + 10, false);
  +      doLargeStringTest((2 << 16) - 10, false);
  +      doLargeStringTest((2 << 16) + 10, false);
      }
   
      public void testLargeStringMultiByte() throws Exception
  @@ -169,14 +169,14 @@
   
      public void test64KStringMultiByte() throws Exception
      {
  -      doLargeStringTest((int) Math.pow(2, 16) - 10, true);
  -      doLargeStringTest((int) Math.pow(2, 16) + 10, true);
  +      doLargeStringTest((2 << 15) - 10, true);
  +      doLargeStringTest((2 << 15) + 10, true);
      }
   
      public void test128KStringMultiByte() throws Exception
      {
  -      doLargeStringTest((int) Math.pow(2, 17) - 10, true);
  -      doLargeStringTest((int) Math.pow(2, 17) + 10, true);
  +      doLargeStringTest((2 << 16) - 10, true);
  +      doLargeStringTest((2 << 16) + 10, true);
      }
   
      protected void doLargeStringTest(int stringSize, boolean multiByteChars) throws Exception
  
  
  



More information about the jboss-cvs-commits mailing list