[jbosscache-commits] JBoss Cache SVN: r8467 - core/support-branches/3.2.7.GA_JBCACHE-1601/src/test/java/org/jboss/cache/passivation.

jbosscache-commits at lists.jboss.org jbosscache-commits at lists.jboss.org
Thu Aug 18 20:05:27 EDT 2011


Author: dereed
Date: 2011-08-18 20:05:26 -0400 (Thu, 18 Aug 2011)
New Revision: 8467

Modified:
   core/support-branches/3.2.7.GA_JBCACHE-1601/src/test/java/org/jboss/cache/passivation/BasicPassivationTest.java
Log:
[JBPAPP-7049] Backport JBCACHE-1601 test case


Modified: core/support-branches/3.2.7.GA_JBCACHE-1601/src/test/java/org/jboss/cache/passivation/BasicPassivationTest.java
===================================================================
--- core/support-branches/3.2.7.GA_JBCACHE-1601/src/test/java/org/jboss/cache/passivation/BasicPassivationTest.java	2011-08-19 00:02:02 UTC (rev 8466)
+++ core/support-branches/3.2.7.GA_JBCACHE-1601/src/test/java/org/jboss/cache/passivation/BasicPassivationTest.java	2011-08-19 00:05:26 UTC (rev 8467)
@@ -91,6 +91,16 @@
       assertEquals("Proper value after 2 passivations", "value", cache.get(fqn, "key"));
    }
 
+   public void testDualPassivationWithGetNode() throws Exception
+   {
+      Fqn fqn = Fqn.fromString(FQNSTR);
+      cache.put(fqn, "key", "value");
+      cache.evict(fqn);
+      cache.getNode(fqn);
+      cache.evict(fqn);
+      assertEquals("Proper value after 2 passivations", "value", cache.get(fqn, "key"));
+   }
+
    public void testIntermingledPassivation() throws Exception
    {
       Fqn fqn = Fqn.fromString(FQNSTR);



More information about the jbosscache-commits mailing list