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

Manik Surtani msurtani at jboss.com
Sat Dec 30 12:50:05 EST 2006


  User: msurtani
  Date: 06/12/30 12:50:05

  Modified:    tests/functional/org/jboss/cache/invocationcontext 
                        TransactionTest.java
  Log:
  Major changes to restructure cache and node object model
  
  Revision  Changes    Path
  1.5       +3 -3      JBossCache/tests/functional/org/jboss/cache/invocationcontext/TransactionTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: TransactionTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/invocationcontext/TransactionTest.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -b -r1.4 -r1.5
  --- TransactionTest.java	31 Oct 2006 06:57:28 -0000	1.4
  +++ TransactionTest.java	30 Dec 2006 17:50:05 -0000	1.5
  @@ -42,8 +42,8 @@
         assertNull("Gtx should not have been set up yet", cache.getInvocationContext().getGlobalTransaction());
   
         // now make a WRITE call into the cache (should start a tx)
  -      cache.put("k", "v");
  -      Map data = cache.getData();
  +      cache.getRoot().put("k", "v");
  +      Map data = cache.getRoot().getData();
         assertEquals("Data map should not empty", 1, data.size());
   
         // but now we should have a local tx registered in the invocation context
  @@ -87,7 +87,7 @@
      private void doScrubbingTest(boolean commit) throws Exception
      {
         tm.begin();
  -      cache.put("key", "value");
  +      cache.getRoot().put("key", "value");
         assertNotNull("Tx should have been set up by now", cache.getInvocationContext().getTransaction());
         assertEquals("The same current transaction should be associated with this invocation ctx.", tm.getTransaction(), cache.getInvocationContext().getTransaction());
         assertNotNull("Gtx should have been set up by now", cache.getInvocationContext().getGlobalTransaction());
  
  
  



More information about the jboss-cvs-commits mailing list