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

Manik Surtani manik at jboss.org
Thu Apr 26 06:47:48 EDT 2007


  User: msurtani
  Date: 07/04/26 06:47:48

  Modified:    tests/functional/org/jboss/cache/options  
                        ExplicitVersionsTest.java
                        ExplicitVersionsReplTest.java
  Log:
  Updated tests to reflect JBCACHE-1026 fix
  
  Revision  Changes    Path
  1.17      +1 -1      JBossCache/tests/functional/org/jboss/cache/options/ExplicitVersionsTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: ExplicitVersionsTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/options/ExplicitVersionsTest.java,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -b -r1.16 -r1.17
  --- ExplicitVersionsTest.java	7 Mar 2007 23:44:00 -0000	1.16
  +++ ExplicitVersionsTest.java	26 Apr 2007 10:47:48 -0000	1.17
  @@ -130,7 +130,7 @@
         cache.getInvocationContext().getOptionOverrides().setDataVersion(v);
         cache.put(Fqn.fromString("/org/domain/Entity/EntityInstance#1"), "k", "v");
   
  -      assertEquals(1, ((DefaultDataVersion) ((NodeSPI) cache.get("/org/domain/Entity")).getVersion()).getRawVersion());
  +      assertEquals(0, ((DefaultDataVersion) ((NodeSPI) cache.get("/org/domain/Entity")).getVersion()).getRawVersion());
         assertEquals(v, ((NodeSPI) cache.get("/org/domain/Entity/EntityInstance#1")).getVersion());
      }
   
  
  
  
  1.15      +2 -2      JBossCache/tests/functional/org/jboss/cache/options/ExplicitVersionsReplTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: ExplicitVersionsReplTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/options/ExplicitVersionsReplTest.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -b -r1.14 -r1.15
  --- ExplicitVersionsReplTest.java	8 Mar 2007 12:53:54 -0000	1.14
  +++ ExplicitVersionsReplTest.java	26 Apr 2007 10:47:48 -0000	1.15
  @@ -331,9 +331,9 @@
   
         cache[0].put(Fqn.fromString("/org/domain/Entity/EntityInstance#1"), "k", "v");
   
  -      assertEquals(1, ((DefaultDataVersion) ((NodeSPI) cache[0].get("/org/domain/Entity")).getVersion()).getRawVersion());
  +      assertEquals(0, ((DefaultDataVersion) ((NodeSPI) cache[0].get("/org/domain/Entity")).getVersion()).getRawVersion());
         assertEquals(v, ((NodeSPI) cache[0].get("/org/domain/Entity/EntityInstance#1")).getVersion());
  -      assertEquals(1, ((DefaultDataVersion) ((NodeSPI) cache[1].get("/org/domain/Entity")).getVersion()).getRawVersion());
  +      assertEquals(0, ((DefaultDataVersion) ((NodeSPI) cache[1].get("/org/domain/Entity")).getVersion()).getRawVersion());
         assertEquals(v, ((NodeSPI) cache[1].get("/org/domain/Entity/EntityInstance#1")).getVersion());
   
      }
  
  
  



More information about the jboss-cvs-commits mailing list