Package org.jboss.cache

Examples of org.jboss.cache.DataNode.numAttributes()


         System.out.println(node);
         if (i % 2 == 0)
         {
            if (i < 6)
            {
               int numElements = node.numAttributes();
               assertEquals(i + 1, numElements);
            }
            else
            {
               assertNull(node);
View Full Code Here


               assertNull(node);
            }
         }
         else
         {
            assertEquals(1, node.numAttributes());
         }
      }
   }

   public void testEviction2() throws Exception
View Full Code Here

         {
            assertNull("Testing at " + i, node);
         }
         else
         {
            assertEquals(1 + i, node.numAttributes());
         }
      }

      for (int i = 0; i < 17; i++)
      {
View Full Code Here

      {
         cache.put("/org/jboss/data/" + Integer.toString(3), new Integer(100 + i), "value");
      }

      DataNode node = cache.get("/org/jboss/data/" + Integer.toString(3));
      assertEquals(21, node.numAttributes());
      _sleep(wakeupIntervalMillis + 500);

      assertNull(cache.get("/org/jboss/data/" + Integer.toString(3)));
   }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.