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

Ben Wang bwang at jboss.com
Thu Sep 28 21:16:19 EDT 2006


  User: bwang   
  Date: 06/09/28 21:16:19

  Modified:    tests/functional/org/jboss/cache/passivation 
                        ReplicatedPassivationIntegrationTest.java
  Log:
  upd
  
  Revision  Changes    Path
  1.2       +8 -5      JBossCache/tests/functional/org/jboss/cache/passivation/ReplicatedPassivationIntegrationTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: ReplicatedPassivationIntegrationTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/passivation/ReplicatedPassivationIntegrationTest.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -b -r1.1 -r1.2
  --- ReplicatedPassivationIntegrationTest.java	29 Sep 2006 00:42:54 -0000	1.1
  +++ ReplicatedPassivationIntegrationTest.java	29 Sep 2006 01:16:19 -0000	1.2
  @@ -57,8 +57,6 @@
         initCaches(cache_);
         cache_.getConfiguration().setUseRegionBasedMarshalling(true);
         cache_.start();
  -      cache_.getNotifier().addCacheListener(listener_);
  -
   
         cache1_ = new TreeCache();
         initCaches(cache1_);
  @@ -94,17 +92,21 @@
      public void testActivationEvent() throws Exception
      {
         String rootStr = "/org/jboss/test/data/";
  +      String rootStr1 = "/__JBossInternal__/5c4o12-pzhlhj-esnuy3sg-1-esnuy3sg-2";
         String str = rootStr + "0";
         cache_.remove("/");
         listener_.resetCounter();
   
         cache_.put(str, str, str);
  +      cache_.put(rootStr1, str, str);
   
  -      TestingUtil.sleepThread(20000);
  +      TestingUtil.sleepThread(11000);
         assertFalse("NodeImpl should not exist", cache1_.exists(str, str));
  -      String val = (String) cache1_.get(str, str);
  +      String val;
  +      val = (String) cache1_.get(str, str);
  +      val = (String) cache1_.get(rootStr1, str);
         assertNotNull("DataNode should be activated ", val);
  -      assertEquals("Eviction counter ", 1, listener_.getCounter());
  +      assertEquals("Eviction counter ", 2, listener_.getCounter());
      }
   
      void log(String msg)
  @@ -134,6 +136,7 @@
            {
               counter++;
               System.out.println("nodeActivate(): counter: " + counter);
  +            System.out.println("nodeActivate(): " + fqn);
            }
         }
   
  
  
  



More information about the jboss-cvs-commits mailing list