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

Ben Wang bwang at jboss.com
Wed Jul 12 09:29:04 EDT 2006


  User: bwang   
  Date: 06/07/12 09:29:04

  Modified:    tests-50/functional/org/jboss/cache/pojo   NewLocalTest.java
                        NewReplicatedTxTest.java
  Log:
  Add fail comment for some known failure now. Will fix later.
  
  Revision  Changes    Path
  1.4       +5 -5      JBossCache/tests-50/functional/org/jboss/cache/pojo/NewLocalTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: NewLocalTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests-50/functional/org/jboss/cache/pojo/NewLocalTest.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -b -r1.3 -r1.4
  --- NewLocalTest.java	27 Jun 2006 09:19:31 -0000	1.3
  +++ NewLocalTest.java	12 Jul 2006 13:29:04 -0000	1.4
  @@ -93,15 +93,15 @@
         Person test = new Person();
         test.setName("Ben");
         test.setAge(10);
  -      cache_.attach("/a", test);
  -      Person result = (Person) cache_.find("/a");
  +      cache_.attach("person", test);
  +      Person result = (Person) cache_.find("person");
         assertEquals(" ", test, result);
         result.setAge(20);
  -      cache_.detach("/a");
  -      assertNull("Object should be null ", cache_.find("/a"));
  +      cache_.detach("person");
  +      assertNull("Object should be null ", cache_.find("person"));
         assertEquals("Age should be updated as ", 20, test.getAge());
   
  -      assertNull("DataNode should not exisit ", cache_.getCache().get("/a"));
  +      assertNull("DataNode should not exisit ", cache_.getCache().get("person"));
      }
   
      public void testFindObjects() throws Exception
  
  
  
  1.3       +7 -5      JBossCache/tests-50/functional/org/jboss/cache/pojo/NewReplicatedTxTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: NewReplicatedTxTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests-50/functional/org/jboss/cache/pojo/NewReplicatedTxTest.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -b -r1.2 -r1.3
  --- NewReplicatedTxTest.java	27 Jun 2006 09:19:31 -0000	1.2
  +++ NewReplicatedTxTest.java	12 Jul 2006 13:29:04 -0000	1.3
  @@ -175,7 +175,8 @@
               {
                  try
                  {
  -                  cache_.attach("/test/ben", p);
  +                  throw new RuntimeException("PojoCache is not rolling back properly for Collection yet.");
  +//                  cache_.attach("/test/ben", p);
                  } catch (Exception ex1)
                  {
                     t1_ex = ex1;
  @@ -250,7 +251,7 @@
                  tx = getTransaction();
                  tx.begin();
                  cache_.attach("/test/ben", p);
  -               TestingUtil.sleepThread(1000);
  +               TestingUtil.sleepThread(500);
                  tx.commit();
               }
               catch (RollbackException rollback)
  @@ -258,9 +259,10 @@
                  try
                  {
                     tx = getTransaction();
  -                  tx.begin();
  -                  cache_.attach("/test/ben", p);
  -                  tx.commit();
  +//                  tx.begin();
  +                  throw new RuntimeException("PojoCache is not rolling back properly for Collection yet.");
  +//                  cache_.attach("/test/ben", p);
  +//                  tx.commit();
                  } catch (Exception ex)
                  {
                     t1_ex = ex;
  
  
  



More information about the jboss-cvs-commits mailing list