activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rajdav...@apache.org
Subject svn commit: r632962 - /activemq/trunk/activemq-core/src/test/java/org/apache/activemq/kaha/impl/index/hash/HashTest.java
Date Mon, 03 Mar 2008 07:15:45 GMT
Author: rajdavies
Date: Sun Mar  2 23:15:45 2008
New Revision: 632962

URL: http://svn.apache.org/viewvc?rev=632962&view=rev
Log:
HashTest expanded to load/unload/load indexes through testing

Modified:
    activemq/trunk/activemq-core/src/test/java/org/apache/activemq/kaha/impl/index/hash/HashTest.java

Modified: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/kaha/impl/index/hash/HashTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/kaha/impl/index/hash/HashTest.java?rev=632962&r1=632961&r2=632962&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/kaha/impl/index/hash/HashTest.java
(original)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/kaha/impl/index/hash/HashTest.java
Sun Mar  2 23:15:45 2008
@@ -70,13 +70,19 @@
         hashIndex.setPageSize(pageSize);
         this.hashIndex.load();
         doInsert(keyRoot);
+        this.hashIndex.unload();
+        this.hashIndex.load();
         checkRetrieve(keyRoot);
         doRemove(keyRoot);
-
+        this.hashIndex.unload();
+        this.hashIndex.load();
         doInsert(keyRoot);
         doRemoveHalf(keyRoot);
         doInsertHalf(keyRoot);
+        this.hashIndex.unload();
+        this.hashIndex.load();
         checkRetrieve(keyRoot);
+        this.hashIndex.unload();
     }
 
     void doInsert(String keyRoot) throws Exception {



Mime
View raw message