geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jgenen...@apache.org
Subject svn commit: r450243 - in /geronimo/sandbox/gcache/server/src/test/java/org/apache/geronimo/gcache/command: ClearCacheCommandTest.java RemoveSessionCommandTest.java
Date Tue, 26 Sep 2006 22:40:16 GMT
Author: jgenender
Date: Tue Sep 26 15:40:16 2006
New Revision: 450243

URL: http://svn.apache.org/viewvc?view=rev&rev=450243
Log:
Fix the unit tests to clear sticky caches

Modified:
    geronimo/sandbox/gcache/server/src/test/java/org/apache/geronimo/gcache/command/ClearCacheCommandTest.java
    geronimo/sandbox/gcache/server/src/test/java/org/apache/geronimo/gcache/command/RemoveSessionCommandTest.java

Modified: geronimo/sandbox/gcache/server/src/test/java/org/apache/geronimo/gcache/command/ClearCacheCommandTest.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/gcache/server/src/test/java/org/apache/geronimo/gcache/command/ClearCacheCommandTest.java?view=diff&rev=450243&r1=450242&r2=450243
==============================================================================
--- geronimo/sandbox/gcache/server/src/test/java/org/apache/geronimo/gcache/command/ClearCacheCommandTest.java
(original)
+++ geronimo/sandbox/gcache/server/src/test/java/org/apache/geronimo/gcache/command/ClearCacheCommandTest.java
Tue Sep 26 15:40:16 2006
@@ -34,6 +34,8 @@
 
         //Set up a cache
         CacheManager cacheMgr = CacheManager.create();
+        //Wipe out the cachemgr of all caches
+        cacheMgr.removalAll();
         cacheMgr.addCache(cacheName1);
         cacheMgr.addCache(cacheName2);
         Cache cache1 = cacheMgr.getCache(cacheName1);

Modified: geronimo/sandbox/gcache/server/src/test/java/org/apache/geronimo/gcache/command/RemoveSessionCommandTest.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/gcache/server/src/test/java/org/apache/geronimo/gcache/command/RemoveSessionCommandTest.java?view=diff&rev=450243&r1=450242&r2=450243
==============================================================================
--- geronimo/sandbox/gcache/server/src/test/java/org/apache/geronimo/gcache/command/RemoveSessionCommandTest.java
(original)
+++ geronimo/sandbox/gcache/server/src/test/java/org/apache/geronimo/gcache/command/RemoveSessionCommandTest.java
Tue Sep 26 15:40:16 2006
@@ -38,6 +38,8 @@
 
         //Set up a cache
         CacheManager cacheMgr = CacheManager.create();
+        //Wipe out all caches
+        cacheMgr.removalAll();
         cacheMgr.addCache(cacheName);
         Cache cache = cacheMgr.getCache(cacheName);
         assert cache != null;



Mime
View raw message